#development #tools #technology

idea

Git is git.

Blame on an entire directory

git ls-files -z | xargs -0n1 git blame

Add all changes one by one

git add --patch

Also on the blog.

Squash commits

Change the number. -i is for interactive, where you can use pick squash and other options.

git rebase -i HEAD~2

current branch

git rev-parse --abbrev-ref HEAD

Configure branch to point to remote automatically

git config --global --add --bool push.autoSetupRemote true