git : empty ident name (for <>) not allowed

前端 未结 4 2042
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 08:07

I was applying a diff file of an opensource project on the top of my repository using git-am :

 git am -3 < /Downloads/refactorWork.diff

but

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 08:22

    I had a patch that looked perfectly fine, including a commit message, Author: header, etc.

    I compared the output of git-format-patch, and noticed it used From: headers instead of Author: headers.

    Sure enough, if you change Author: to From:, git-am applies the change cleanly.

提交回复
热议问题