Our central Git server is down at the moment, and my working copy is out of date, I'm working from home today, and I'm trying to see if there's a way that I can get a colleague who has the latest history to email me equivalent data to a git pull origin master
.
For the sake of argument, let's call the latest commit I have in my working copy of the master
branch abcd1234
. My colleague's working copy is up to date with the server, and latest commit in his working copy of the master branch is ef123456
.
How can he email me a dataset that covers the history from abcd1234
to ef123456
, and how can I apply it to my working copy? (And is this equivalent to a pull from the server? Or would I be getting myself into tricky territory?)
I tried looking at git-format-patch but it doesn't seem to have any examples of this type, and I'm paranoid about getting the syntax right -- if I don't have high confidence that I know what I'm doing, then I'll wait for the server to be back up, which might take a few days.
Hmm. Another stackoverflow issue mentioned that git-bundle is more appropriate. But I'm still not sure how to capture history of a branch from one rev-hash to another.