Skip to content

Instantly share code, notes, and snippets.

@nkrumm
Last active December 21, 2015 00:59
Show Gist options
  • Save nkrumm/6224148 to your computer and use it in GitHub Desktop.
Save nkrumm/6224148 to your computer and use it in GitHub Desktop.
git hub command line improvements
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