jrwy8w
Last Updated: February 25, 2016
·
475
· magnetikonline
Df1412e1775840374894798d5ed9a7ea

Two finger git aliases

git

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 :)

Say Thanks
Respond
Filed Under