Useful git commands
Git command collection
Recommit HEAD.
git commit --amend
Untrack files, when .gitignore and .git/info/exclude doesn't work.
Stop tracking files with:
git update-index --assume-unchanged MYFILE
Resume tracking files with:
git update-index --no-assume-unchanged MYFILE
Source: Stackoverflow.com.
Keep a note on which files being untracked. Git will not document this changes.
See the number of commits done to a repository.
git log -a --pretty=oneline | wc -l
Source: Chris Coyier.