首次執(zhí)行 git commit 時(shí),報(bào) fatal: unable to auto-detect email address 錯(cuò)誤:
報(bào)錯(cuò)原因:應(yīng)該是默認(rèn)git沒(méi)有配置用戶導(dǎo)致的
解決方案:
解決方案其實(shí)git已經(jīng)給出了:
在Git Bash 中執(zhí)行如下兩句命令,進(jìn)行全局修改
- git config --global user.email "郵箱地址(可隨意輸入)"
- git config --global user.name "用戶名(可隨意輸入)"
聯(lián)系客服