fatal: unable to auto

编程入门 行业动态 更新时间:2024-10-27 20:37:59

<a href=https://www.elefans.com/category/jswz/34/1770274.html style=fatal: unable to auto"/>

fatal: unable to auto

    同事第一次用git,然后提交的时候报错fatal: unable to auto-detect email address (got 'tim@newton.(none)')

 

    在网上查了下,发现一个简单的,治标不治本的方法

在 .git 文件夹中找到 config 文件,在最后边加上
[user] 

email = ...

name = ...

 

    然后找到另外一个,算是 治本 的方法

git config --global user.email "..."

git config --global user.name "..."

这是在本机git上设了一个全局变量,用来对应用户名和邮箱。

这样以后这台电脑上就不用再配置了

更多推荐

fatal: unable to auto

本文发布于:2024-02-07 07:13:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1754200.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:fatal   unable   auto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!