学无先后,达者为师

网站首页 编程语言 正文

git问题:“ unable to auto-detect email address”或 “*** Please tell me who you are.”

作者:一种天气 更新时间: 2022-09-25 编程语言

问题:
在这里插入图片描述

网上有种解决办法是找到config文件在最后加上:

[user]
 email=your email
 name=your name

但我这样改了之后会提示文件错误:
在这里插入图片描述
最后的解决办法是加上这两条git语句,用户名和账号可以修改:

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

这样就在你的git上加上了全局用户名和邮箱

原文链接:https://blog.csdn.net/weixin_44743543/article/details/123981018

栏目分类
最近更新