Git aliases I can’t live without

This is a dump of my most used git aliases for easy future reference.

[alias]
 # log with pretty formatting
 l = log \"--pretty=format:%C(yellow bold)%h %C(red bold)%ad %C(white bold)%an %C(reset)%s%C(cyan bold)%d\" --all --decorate --date=short

 # Show commits from me (Louie) 
 la = log --author="louie" \"--pretty=format:%C(yellow bold)%h %C(red bold)%ad %C(white bold)%an %C(reset)%s%C(cyan bold)%d\" --all --decorate --date=short

 # Show history (commits) of a file
 h = log --follow \"--pretty=format:%C(yellow bold)%h %C(red bold)%ad %C(white bold)%an %C(reset)%s%C(cyan bold)%d\" --all --decorate --date=short

 # Show files in a commit
 f = show --name-status \"--format=%C(yellow bold)%h %C(red bold)%ad %C(white bold)%an %C(reset)%s%C(cyan bold)%d\" --date=short

 s = status
 a = add -A
 b = branch
 dif = difftool --cached --dir-diff
 cm = checkout master
 cd = checkout develop