2012-08-08 340 views

回答

236

我不确定您的意思是“撤消”更改。您可以删除core.excludesfile设置是这样的:

git config --global --unset core.excludesfile 

当然,你可以简单地编辑配置文件:

git config --global --edit 

...然后用手取出设置。

+1

只要你有相同的密钥重复(因为你做了--add而不是--edit),这个命令不会工作,但你可以做'git config --replace-all core.excludesfile'your_value“ – Juancho 2015-01-30 12:04:45

+1

我想把它改回“输入”,但在'system'范围下找到了现有的设置,所以我用'git config --system --edit'来改变我的输入。 – 2015-05-06 13:05:20

+0

“你可以告诉Git在提交时将CRLF转换为LF,而不是通过设置core.autocrlf来输入:”From:http://git-scm.com/book/en/v2/Customizing-Git- Git-Configuration#Formatting-and-Whitespace – 2015-05-06 13:11:16

8

尝试从命令行更改git config的详细信息。

git config --global --replace-all user.name "Your New Name" 

git config --global --replace-all user.email "Your new email" 
6

打开配置文件编辑:

git config --global --edit 

点击插入和删除设置

最终输入:wq输入保存。