首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >git中报unable to auto-detect email address 错误的解决拌办法

git中报unable to auto-detect email address 错误的解决拌办法

作者头像
超级小可爱
发布2023-02-20 17:14:53
发布2023-02-20 17:14:53
2.1K0
举报
文章被收录于专栏:小孟开发笔记小孟开发笔记

昨天刚配置好的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文件夹,打开之后找到config文件,在最后边加上一句话

[user]

email=your email

name=your name

your email 和your name随便写上就行

备注:亲测可行

未经允许不得转载:肥猫博客 » git中报unable to auto-detect email address 错误的解决拌办法

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档