tag a version
git tag -a v1.4 -m 'my version 1.4'
remove untracked files and directories
git clean -f -d
delete remote branch
git branch -d {the_local_branch}
git push origin :{the_remote_branch}
save password (OSX only)
git config --global credential.helper osxkeychain
erase password - use Keychain Access.app or ...
git credential-osxkeychain erase
host=github.com
protocol=https
revert an individual file in working directory
git checkout HEAD <file>
in staging area
git reset HEAD <file>
reset everything
git fetch origin
git reset --hard origin/master
undo last commit in working branch
git reset --soft HEAD~1
log deletes
git log --diff-filter=D --summary
search for <string> in commit messages
git log -g --grep=<string>
checkout a tagged version
git checkout tags/0.0.1
log all branches
git log --source --all