fatal: unable to auto-detect email address (got 'name@bogon.(none)')的解决方法

git 更新时,报错如下:

Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'name@bogon.(none)')

  • 解决方法一:
    1.$ git config --global user.email "you@example.com"

    2.$ git config --local -l 查看本地配置

  • 解决方法二(参照网上解决办法):
    找到工程目录的.git文件夹,打开之后找到config文件,在最后边加上一句话
    [user]
    email=your email
    name=your name

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容