0
点赞
收藏
分享

微信扫一扫

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

爱上流星雨 2022-04-06 阅读 37
git

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

网上有种解决办法是找到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上加上了全局用户名和邮箱

举报

相关推荐

0 条评论