只需要完成下面两部,就可以实现在mac osx 下git 命令自动补齐
首先下载自动补齐脚本,使用curl命令如下:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
编辑.profile 文件,在最后增加如下代码:
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
重启终端后应该就可以愉快的使用tab来自动补全了
http://m.bbyears.com/asp/83721.html
推荐访问:github官网 gitlab git拉取远程分支到本地