Git's tab autocompletion is useful for small projects, but I'm currently working on two big projects that use git and for these it's worse than useless. Whenever I type, say, git add forms<tab>
, git takes 20 seconds or more to find the file (in this example, forms.py), and in this timespan I can't do anything else in the terminal. Is there any way to turn off the autocompletion feature, or somehow make it faster?
相关问题
- JQ: Select when attribute value exists in a bash a
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- 请教Git如何克隆本地库?
- Check if directory exists on remote machine with s
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- Reverse four length of letters with sed in unix
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
It's not git auto completing the file names, it's your shell. Do you have the same delay when doing e.g. "cat forms< tab >"?
Check out this post with similar problems:
http://talkings.org/post/5236392664/zsh-and-slow-git-completion
This post suggests adding the following to your .zshrc:
EDIT: Here's the original text of that post
Finally fed up with terribly slow auto-completion in zshell and starting looking a solution. I ended up switching from 'git' to using the 'gitfast' plugin that is already installed w/ oh my zsh and am flying... https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#gitfast
I have no experience with zshell, but I got this answer on another forum. You need to include this line in your .zshrc file:
According to the answer to git bash auto complete slow on windows 7 x64, git 2.13 comes with a faster
git-completion.bash
One very quick and dirty solution is to delete the following file responsible for the auto-completion.