git中報unable to auto-detect email address 錯誤的解決辦法

原文鏈接:https://www.cnblogs.com/Traveller-Leon/p/6852680.html

每次重新新建工程時候git的配置信息都不能直接在命令行裏修改 用戶名 和郵箱,不會生效,且報錯

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'Administrator@PC-20150120BUBR.(none)')

參考網上解決辦法就是

找到工程目錄的.git文件夾,打開之後找到config文件,在最後邊加上一句話
[user]
email=your email
name=your name

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章