Create patch or diff file from git repository and apply it to another different git repository

前端 未结 4 1587
青春惊慌失措
青春惊慌失措 2020-12-12 09:33

I work on WordPress based project and I want to patch my project at each new release version of WP. For this, I want generate a patch between two commits or tags.

For

4条回答
  •  情歌与酒
    2020-12-12 10:05

    you can apply two commands

    1. git diff --patch > mypatch.patch // to generate the patch
    2. git apply mypatch.patch // to apply the patch

提交回复
热议问题