git 自动补全— ubantu & Mac

Ubantu:

1. git install

apt-get install git
apt-get install git-core

2. download git source code

git clone git://git.kernel.org/pub/scm/git/git.git

或者去 http://git-scm.com/download 直接下载源码

3. 把这个文件复制到系统目录

cp /usr/share/bash-completion ~/.bash_completion.bash

4. 在 .bashrc 中加入:

source ~/.git-completion.bash

5 testing

$ git co
config commit

Mac

请参考: https://blog.csdn.net/cyuyanenen/article/details/51829090

ubantu转载自:
https://blog.csdn.net/The_lastest/article/details/50354374

猜你喜欢

转载自blog.csdn.net/u011141492/article/details/79904720
今日推荐