How to apply a patch generated with git format-patch?

后端 未结 6 1106
暖寄归人
暖寄归人 2020-11-29 15:10

I have 2 git local repositories both pointing to the same remote repository.

In one git repository, if I do git format-patch 1, how can I apply that patc

6条回答
  •  孤街浪徒
    2020-11-29 15:48

    Or, if you're kicking it old school:

    cd /path/to/other/repository
    patch -p1 < 0001-whatever.patch
    

提交回复
热议问题