天天看點

Git commit 報 fatal: unable to auto-detect email address 錯誤

        Git commit 報 fatal: unable to auto-detect email address 錯誤

首次執行 git  commit 時,報 fatal: unable to auto-detect email address 錯誤:

Git commit 報 fatal: unable to auto-detect email address 錯誤

報錯原因:應該是預設git沒有配置使用者導緻的

解決方案:

解決方案其實git已經給出了:

Git commit 報 fatal: unable to auto-detect email address 錯誤

在Git Bash 中執行如下兩句指令,進行全局修改

git config --global user.email "郵箱位址(可随意輸入)"

git config --global user.name "使用者名(可随意輸入)"