#development #tools #technology
idea
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
hide stuff[1]
.gitignore - meant to be checked in .git/info/ignore - ignore on that clone ~/.git/ignore - ignore across that machine
references
[1]: https://nelson.cloud/.gitignore-isnt-the-only-way-to-ignore-files-in-git/
[1]: