git:key不包含节 [英] git: key does not contain a section
问题描述
当我按 tab 自动完成任何命令时,它也完成了命令。
lockquote
error:key不包含一个部分:--get-regex
任何人都可以请帮忙避免这个错误吗?
检查在您的主目录中查看.gitconfig文件,看它是否存在'--get-regex',它不应该存在。
同时检查.git / config你正在为同一个字符串工作。
一位同事遇到了同样的问题,他的〜/ .config中有额外的东西导致了问题。 p>
I am using Git version 1.8.4.2.
When I press tab to auto complete any command, it prints the error below and it also completes the command.
error: key does not contain a section: --get-regex
Can anyone please help to avoid this error?
Check the .gitconfig in your home directory and see if it has '--get-regex' in it somewhere it should not be.
Also check .git/config in the repo you are working in for the same string.
A colleague was having the same issue and his ~/.config had extra stuff in it which caused the problem.
这篇关于git:key不包含节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!