首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在git中犯罪?

如何在git中犯罪?
EN

Stack Overflow用户
提问于 2021-12-09 13:53:44
回答 1查看 256关注 0票数 -8

我对git很陌生,在尝试提交时,我得到了以下信息:

代码语言:javascript
复制
$ git commit -m "Initial commit"
Author identity unknown

*** 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 '91949@PC.(none)')"

我怎样才能把我的文件交出来?

EN

回答 1

Stack Overflow用户

发布于 2021-12-09 13:58:09

答案在命令返回的文本中:

运行

git配置--全局user.email "you@example.com“

git配置--全局user.name“您的名字”

运行其中之一,提供您的电子邮件或您的名字和git应该很高兴让您提交。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70291127

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档