Last Updated: February 25, 2016
·
610
· magnetikonline

Two finger git aliases

Add git ba, git da, git dac, git lg, git lt and git st as aliases to ~/.gitconfig:

git config --global alias.ba "branch -a"
git config --global alias.da "difftool -d"
git config --global alias.dac "difftool -d --cached"
git config --global alias.lg "log --graph --pretty=format:'%C(red)%h%C(reset) - %s - %C(yellow)(%ar)%C(reset) <%an>'"
git config --global alias.lt "ls-tree -r --abbrev=6 --full-tree HEAD"
git config --global alias.st "status -sb"

That is all, your keyboard thanks you.

Edit: So, git dac is technically three keys, but it would ruin my protip title :)