Skip to content

Instantly share code, notes, and snippets.

@anshulguleria
Last active December 15, 2015 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anshulguleria/b12dbba383814edbb1bd to your computer and use it in GitHub Desktop.
Save anshulguleria/b12dbba383814edbb1bd to your computer and use it in GitHub Desktop.
Basic git related help
# make vim as my editor for commits in git
git config --global core.editor "vim"
# make git cache my credentials
git config --global credential.helper 'cache --timeout=7200'
# color full log aliased to "lg"
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment