github|git 命令自动补全配置教程

时间:2019-12-26  来源:远程及网络应用  阅读:

只需要完成下面两部,就可以实现在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来自动补全了

github|git 命令自动补全配置教程

http://m.bbyears.com/asp/83721.html

推荐访问:github官网 gitlab git拉取远程分支到本地
相关阅读 猜你喜欢
本类排行 本类最新