git create path with difference between commits code example
Example: how to create a patch file between 2 branches git
git diff master Branch1 > ../patchfile
git checkout Branch2
git apply ../patchfile
git diff master Branch1 > ../patchfile
git checkout Branch2
git apply ../patchfile