1. Copy git-completion.bash
Rename the file as git-completion.sh
and paste to your home directory. (~/)
2. Install Bash Complete
brew install bash-completion
echo “” >> ~/.bash_profile
echo “#Git Completion” >> ~/.bash_profile
echo “”[ -f ~/.git-completion.sh ] && . ~/.git-completion.sh” >> ~/.bash_profile
You can using ‘TAB’ for auto completion now!