Monday, June 15, 2015

Git on Mac

1. Set [TAB] as auto-completion
    curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

Add the following code to file ~/.bash_profile :
if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi
Give the script permission to run:
chmod -X ~/.git-completion.bash

Close and open a new shell. Done!