Last active
December 21, 2015 00:59
-
-
Save nkrumm/6224148 to your computer and use it in GitHub Desktop.
git hub command line improvements
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
Improve the log (https://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 --" | |
Enable color in git: | |
git config --global --add color.ui true | |
Make git push only push the current branch | |
git config --global push.default current | |
# or using "simple", apparently becoming default | |
git config --global push.default simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment