Compiled from the following sources:
$ git log -p --reverse --binary --pretty=email --stat -m --first-parent SOURCEREF..origin/main -- . ':!excludeRandomFile.json' > ../my.patch $ cd ../anotherRepo/ $ cat ../my.patch | git am