Git apply skips patches

后端 未结 3 1619
傲寒
傲寒 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 08:04

    If you use the --directory option to "git apply":

      --directory=
    

    that path is RELATIVE TO THE BASE DIRECTORY (the one containing ".git"), not relative to the current working directory. You cannot use an absolute path either.

    This is completely undocumented and took me hours to discover.

提交回复
热议问题