Disable auto-completion of remote branches in Git Bash?

后端 未结 9 1490
广开言路
广开言路 2020-11-30 01:59

I\'m working on a fairly large git repo with a couple of thousand (remote) branches. I am used to using auto-completion (using [TAB]) in the console (Git Bash in that case),

9条回答
  •  失恋的感觉
    2020-11-30 02:10

    You can hack /etc/bash_completion.d/git

    You'll need to edit __git_refs ()

    Note that the change in behaviour will apply every where (so even with git push/pull where you might not want it to). You could of course, make a copy of the function or pass an extra parameter, but I leave that to you

提交回复
热议问题