Last active
December 15, 2015 05:13
-
-
Save anshulguleria/b12dbba383814edbb1bd to your computer and use it in GitHub Desktop.
Basic git related help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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