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 错误_第1张图片

报错原因:应该是默认git没有配置用户导致的

解决方案:

解决方案其实git已经给出了:

Git commit 报 fatal: unable to auto-detect email address 错误_第2张图片

在Git Bash 中执行如下两句命令,进行全局修改

git config --global user.email "邮箱地址(可随意输入)"

git config --global user.name "用户名(可随意输入)"

 

你可能感兴趣的:(Git,git,commit)