打赏

git自动补全

git 自动补全

  1. 下载git补全的配置
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
  1. 编辑~/.bashrc

    vim ~/.bashrc
    
    if [ -f ~/.git-completion.bash ]; then
    . ~/.git-completion.bash
    fi
    

​ 3.配置生效

source ~/.bashrc

4.测试

git che  // tab键补全

posted @ 2022-06-17 13:51  苍山落暮  阅读(253)  评论(0编辑  收藏  举报