【发布时间】:2012-07-19 17:28:14
【问题描述】:
我正在尝试以其他用户的身份提交一些更改,但我没有有效的电子邮件地址,以下命令对我不起作用:
git commit --author="john doe" -m "some fix"
fatal: No existing author found with 'john doe'
我在尝试仅使用电子邮件地址提交时遇到了同样的问题
git commit --author="john@doe.com" -m "some fix"
fatal: No existing author found with 'john@doe.com'
在提交命令的 GIT 手册页上,它说我可以使用
standard A U Thor <author@example.com> format
对于 --author 选项。
这种格式是在哪里定义的? A 和 U 代表什么?我如何为只有用户名或只有电子邮件的其他用户提交?
【问题讨论】:
-
AU 不代表任何东西,它只是一个例子:AU Thor => AUThor => 作者。您可以指定任何您想要的名称。
-
我知道 A U Thor 形成了作者,我想知道分离是否有任何意义。