Error in running 'git apply'

后端 未结 3 1337
谎友^
谎友^ 2021-02-08 02:26

Can you please tell me how can I resolve the \'patch does not apply\' error when I try to \'git apply-patch\'?

$ git apply 0001-my.patch
error: patch failed:test         


        
3条回答
  •  伪装坚强ぢ
    2021-02-08 03:18

    Or you may also want to rebase with main or origin

    git rebase origin
    

    Just to make sure you are on the same track with latest changes before you will start applying patches from other guys.

提交回复
热议问题