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(邮箱)
本站附件分享,如附件失效,可以去找找看
诚通网盘附件、百度网盘附件
赞助我
如果本文对你有帮助,那么请你赞助我,让我更有激情的写下去,帮助更多的人。
本站加入了Google AdSense,因为谷歌 AdSense 算是广告商里难得“有节操、有底线”的佼佼者,没有任何低俗、垃圾、恶心的广告,所有希望不要“一刀切”式的拦截广告
如无特殊说明,解压密码均为:aisoa.cn
干饭福利分享: 微信扫码领取“饿了么”抵用券↓↓↓↓↓↓↓↓↓↓