I am looking for a way to export to a file the diff (e.g. as plaintext) between two git commits in a local repo. Then a way to apply that as a patch in another local repo (transferring a file with a pendrive).
Reasons:
- One computer cannot be connected to the Internet, or to any of our servers, for the matter.
- So far we are copying the whole Git repo, but it is becoming rather inconvenient.
Preferably:
- It would be very good if intermediate commits were kept, with their hashes, etc.
- It would also be good if authorship information was preserved and
blame
worked everywhere.
I thought this was trivial with Git, but I am finding no information in the Internet about how to do it, it is clearly not trivial, is it possible? If so, how?