2016-03-17 65 views
0

我已經在Windows 10雖然我一直在使用</p> <pre><code>git config --global user.name "My name" git config --global user.email [email protected] </code></pre> <p>設置我的細節Git不會承認user.name和user.mail(視窗10)

碰到一個奇怪的情況下使用Git不斷收到這樣的警告消息時,我嘗試提交:

Committer: "my_pc_username" <"my_pc_hostname"> 
Your name and email address were configured automatically based 
on your username and hostname. Please check that they are accurate. 

的提交筆者確實與這些細節,而不是我設置來設定的。

我也運行git config與--system以及沒有選項開關只是爲了確保。信息仍然存在。

我還檢查和兩個.gitconfig文件中C:/Users/myuser和回購中的config文件具有以下部分

[user] 
    name = My Name 
    mail = [email protected] 

最後,每當我與檢查:

git config user.name 
git config --global user.name 
git config --system user.name 

我得到的正確答案(My Name)。 user.mail相同。

我使用的是git bash 2.7.3。

我真的很感謝你的幫助。

+0

打開git bash並從那裏嘗試 – CodeWizard

+0

你用什麼來執行'git'命令? (即Git Bash,Git Cmd,Cmd等) – Harmelodic

+0

GIT_CONFIG env變量是不是被設置爲某個東西? (echo $ GIT_CONFIG) – peterfoldi

回答

1

你的.gitconfig顯示「郵件」而不是「電子郵件」字段,我還以爲你喜歡我的複製this

右外場是地方自然落下「電子郵件」也許你喜歡我輸入錯誤發出的命令時

相關問題