1. 程式人生 > >git錯誤:unable to auto-detect email address

git錯誤:unable to auto-detect email address

idea 用git更新的時候報錯,詳細錯誤資訊如下:

Tried to save uncommitted changes in stash before Update, but failed with an error. stash file://D:/Workspace for idea/MYProject: unable to auto-detect email address (got '[email protected](none)') Cannot save the current index state


最後看到這篇部落格

https://www.cnblogs.com/Traveller-Leon/p/6852680.html


解決辦法有效:

找到工程目錄 (Project) 的.git資料夾,開啟之後找到config檔案,在最後邊加上一句話
[user]
email=your email
name=your name