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

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 example, in my repo /www/WP I do this: $ git patch-format com1..com2 –stdout > ‘~/patchs/mypatch.patch’ # or $ git patch-format tag1..tag2 –stdout … Read more