解決mac terminal git沒法自動補(bǔ)全問題
brew install bash-completion
git clone https://github.com/git/git.git
cp contrib/completion/git-completion.bash ~/.git-completion.bash
vim ~/.bash_profile
補(bǔ)充:
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
source ~/.bash_profile
關(guān)閉終端并重啟
注:shell要換成bash

image.png