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


昨天剛配置好的git,今天剛要commit一些修改,就遇到了這個問題
** Please tell me who you are.


Run


  git config --global user.email "you@example.com"
  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 'tim@newton.(none)')


后來找到了解決辦法:
找到工程目錄的.git文件夾,打開之后找到config文件,在最后邊加上一句話
[user]
 email=your email
 name=your name
your email 和your name隨便寫上就行
參考鏈接:https://www.cnblogs.com/icebutterfly/p/7807806.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM