0
碰到一個奇怪的情況下使用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。
我真的很感謝你的幫助。
打開git bash並從那裏嘗試 – CodeWizard
你用什麼來執行'git'命令? (即Git Bash,Git Cmd,Cmd等) – Harmelodic
GIT_CONFIG env變量是不是被設置爲某個東西? (echo $ GIT_CONFIG) – peterfoldi