本文介绍了git:key不包含节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Git 1.8.4.2版本。



当我按自动完成任何命令时,它也完成了命令。

lockquote

error:key不包含一个部分:--get-regex


任何人都可以请帮忙避免这个错误吗?

解决方案

检查在您的主目录中查看.gitconfig文件,看它是否存在'--get-regex',它不应该存在。



同时检查.git / config你正在为同一个字符串工作。



一位同事遇到了同样的问题,他的〜/ .config中有额外的东西导致了问题。 p>

I am using Git version 1.8.4.2.

When I press to auto complete any command, it prints the error below and it also completes the command.

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不包含节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 18:48
查看更多