mwa*_*ing 5 git configuration patch
我写了一些使用 git 应用补丁的说明。这些说明旨在放入控制台并完成。像这样:
git am bar.patch
git am foo.patch
Run Code Online (Sandbox Code Playgroud)
但是 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
Run Code Online (Sandbox Code Playgroud)
这似乎不是必需的,因为只有补丁的作者出现在 git 日志中,而不是应用补丁的人。有没有办法忽略配置?
编辑:错别字
请参阅“ Git 中作者和提交者之间的区别? ”
当您应用补丁时,您就是提交者。所以 Git 需要知道“你”是谁。
关于git am--committer-date-is-author-date ,如果您希望与这些补丁创建的提交相关的日期与所述补丁中记录的日期相同,我建议考虑使用。
| 归档时间: |
|
| 查看次数: |
578 次 |
| 最近记录: |