Git alias

Updated: May 20, 2018  |  less than 1 minute read

If you use Git everyday like me, you will certainly want to use some alias to speed up your Git life. I would like to share with everyone here my favorite Git alias.

git config --global alias.st "status"
git config --global alias.co "checkout"
git config --global alias.sh "show"
git config --global alias.df "diff"
git config --global alias.ci "commit"
git config --global alias.amend "commit --amend -C HEAD"
git config --global alias.unstage "reset HEAD --"
git config --global alias.lga "log --graph --decorate --oneline --all"
git config --global alias.ll "log --graph --all --pretty=format:'%C(auto)%h%Creset <%an>: %s %Creset%C(auto)%d%Creset %C(bold black)(%cr)%Creset' --abbrev-commit --date=relative"

Tags:

Updated:

Leave a comment