天天看點

關于git的 unable to auto-detect email address (got '[email protected](none)')錯誤的解決方法

錯誤出現在初次使用git的時候~~~~

使用git commit的時候出現了如下錯誤:

unable to auto-detect email address (got ‘[email protected](none)’)

關于git的 unable to auto-detect email address (got '[email protected](none)')錯誤的解決方法

以及:

empty ident name (for [email protected]) not allowed

關于git的 unable to auto-detect email address (got '[email protected](none)')錯誤的解決方法

解決方法:

根據報錯的tell me who you are,直接告訴git who I am.

輸入指令:git config --global user.name “此處輸入你的名字”

然後重新運作一下add和commit.

就可以成功commit啦~。