Linux:
source /etc/bash_completion.d/git souirce /usr/share/bash-completion/completions/git
apt-get install git-core bash-completion
source "$(pkg-config --variable=completionsdir bash-completion)"/git
Mac:
brew install bash-completion@2
git-completion.bash
master: https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
branch:
curl https://raw.githubusercontent.com/git/git/v$(git version | awk '{print $3}')/contrib/completion/git-completion.bash
标签:completion,git,raw,Git,contrib,bash From: https://www.cnblogs.com/dissipate/p/16749761.html