1. 程式人生 > >unable to auto-detect email address

unable to auto-detect email address

git錯誤:unable to auto-detect email address

2017年11月14日 08:51:08  閱讀數:7914  

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