My Git Environment
Here's my Git Environment, one of the first things I cut-n-paste on any new development machine.
git config --global rerere.enabled=true
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 push.default=current
git config --global user.name=“Randall Hand”
git config --global user.email=“<my email address>”
git config --global color.ui=true
git config --global core.editor vim
git config --global core.autocrlf input
And on a mac, I have a few more:
git config --global credential.helper osxkeychain
git config --global core.editor ‘subl -w'
git config --global mergetool.sublime.cmd=subl -w $MERGED
git config --global mergetool.sublime.trustexitcode=false
git config --global merge.tool=sublime
If anyone has any other neat git config tricks, I'ld love to know.
Written by Randall Hand
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#