2012-08-08 339 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輸入保存。