curl  https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

# 添加到 .bash_profile 
vim ~/.bash_profile 

# 添加内容
if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi

# 保存后刷新
source ~/.bash_profile 

 

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-11-22
  • 2022-01-26
  • 2021-12-17
  • 2021-11-11
  • 2021-08-24
相关资源
相似解决方案