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 :)
Written by Peter Mescalchin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#