step1 下载
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
step2 加载到环境变量
source git-completion.bash
step3 添加到shell启动文件可以实现自动加载环境变量
# 1
mv git-completion.bash /etc/profile.d/
# 2
vim ~/.bashrc
# edit
2023-10-08 11:55:40
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
source git-completion.bash
# 1
mv git-completion.bash /etc/profile.d/
# 2
vim ~/.bashrc
# edit
下一篇:C++第3周(春)项目3 时间类