Skip to content

Instantly share code, notes, and snippets.

@zlargon
Last active October 25, 2015 16:04
Show Gist options
  • Save zlargon/ef6093aa98a80b547633 to your computer and use it in GitHub Desktop.
Save zlargon/ef6093aa98a80b547633 to your computer and use it in GitHub Desktop.
My Git Config on OS X
git config --global color.ui true
git config --global core.editor vim
git config --global core.quotepath false
# git alias
git config --global alias.br branch
git config --global alias.co checkout
git config --global alias.cp cherry-pick
git config --global alias.st stash
git config --global alias.sub submodule
# install git-completion
profile=~/.bash_profile
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.sh
echo "" >> $profile
echo "# git completion" >> $profile
echo "[ -f ~/.git-completion.sh ] && . ~/.git-completion.sh" >> $profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment