Skip to content

Instantly share code, notes, and snippets.

@okeydoke
okeydoke / gist:2957957
Last active August 1, 2021 22:38
git aliases
via http://coderwall.com/p/euwpig?i=3&p=1&t=git
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.df "diff -U --color"
git config --global alias.st "status -sb"
#new branch
git config --global alias.nb "checkout -b"