Git Aliases
03 Oct 2011Ever see someone checkout a git repo by simply typing `git co master` instead of the HORRIBLY LONG IMPOSSIBLY DIFFICULT `git checkout master` ? I know I have, so to save me HOURS a day I added these aliases to my ~/.gitconfig to my git config file.
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
You can get even more helpful stuff through this handy cheat sheet https://cheat.errtheblog.com/s/git. Good luck and happy Git-ing