repo init -u || git 报错 fatal: unable to auto-detect email address
今天在调试更新git时出现了如下问题:fatal: unable to auto-detect email address
刚配置好的git,今天刚要commit一些修改,就遇到了这个问题
** 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 'tim@newton.(none)')
git 报错 fatal: unable to auto-detect email address
1、如果碰到 fatal: unable to auto-detect email address 错误就先执行下面的代码,user.email 和 user.name可以随便乱写
git config --global user.email "aa@ab.com" git config --global user.name "aa"
2、直接在git中使用如下命令:
git config user.name "xxxxx"
3、找到根文件.git文件,输入如下:
[user] name = XXX(自己的名称) email = XXXX(邮箱)
点击链接加入群聊四群:722808830
点击链接加入群聊三群:751529538(已满)
点击链接加入群聊二群:376877156(已满)
点击链接加入群聊一群:622891808(已满)
饿了么红包
本站附件分享,如果附件失效,可以去找找看