Git apply skips patches

后端 未结 3 1626
傲寒
傲寒 2021-02-12 07:32

I\'m trying to apply a patch that includes binary files with git apply but only the files are added. I tried running git apply failing.patch -v and it

3条回答
  •  無奈伤痛
    2021-02-12 07:56

    I found out the problem by running patch -p1 < failing.patch which printed:

    can't find file to patch at input line 5

    and reminded me that I was not in the root directory.

    I can't understand why no one had asked this before and why is the verbose message not verbose.

    Also, not even the official documentation mentions skipping and possible causes.

提交回复
热议问题