Git fatal: unable to auto-detect email address (got ‘xxx.(none)‘)

问题描述

刚刚想在Linux上用命令git commit告诉Git,把文件提交到仓库,但出现了如图的错误提示:

Git fatal: unable to auto-detect email address (got ‘xxx.(none)‘)_第1张图片

解决方法

先查看git有没有安装成功,再对git进行设置用户名及邮箱地址,再用list查看设置是否成功,再对文件进行add和commit就OK了。

Git fatal: unable to auto-detect email address (got ‘xxx.(none)‘)_第2张图片

你可能感兴趣的:(走进git,git,linux)