git安装好后发现命令不能自动补全于是搜了很多方法,先按博客里面的方法试了下:

1.下载配置文件 git clone git://git.kernel.org/pub/scm/git/git.git

2.cp  git/contrib/completion/git-completion.bash  ~/.git-completion.bash

3.在.bashrc中添加  source ~/.git-completion.bash

4.source ~/.bashrc

相关文章:

  • 2021-09-03
  • 2021-05-23
  • 2021-10-18
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2021-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-11-17
相关资源
相似解决方案