【发布时间】:2014-11-18 03:28:55
【问题描述】:
我写了一些指令,也使用 git 来应用一些补丁。 这些说明旨在放入控制台并使用它完成。 像这样:
git am bar.patch
git am foo.patch
但 git 现在正在询问用户名/电子邮件:
*** 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 'root@user-VirtualBox.(none)')
You need to set your committer info first
这似乎不需要,因为只有补丁的作者出现在 git 日志中,而不是应用它们的人。有没有办法忽略配置?
编辑:错别字
【问题讨论】:
-
所有提交都有作者和提交者,这是没有办法的。只配置一次用户名/电子邮件并完成它有什么问题?
-
问题是人们复制&粘贴命令并没有看到git无法应用补丁(因为git没有配置)。
标签: git configuration patch