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

前端 未结 4 2044
没有蜡笔的小新
没有蜡笔的小新 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:12

    Moved out of comment to the accepted answer

    When you click "Save unified diff" in TortoiseGit, you must right-click the created .diff or .patch file and select TortiseGit→Review/apply single patch instead of Apply Patch Serial....

    Put the diff file in the root of the folder to which files you want to apply the patch to, first.

提交回复
热议问题