Sending a git repo to remote user
I recently had to send a git repo to a remote user. For some reason we could not pull from the same remote. So I had to send him my repo. Rather than a tar ball, git has a very useful utility called git-bundle that will let you send the whole git repo (say via email or something) and the other person can then just extract from it and get the full history etc... Here’s what I did, In the git root:
git bundle create myrepo.bundle master
git tag -f 07282015 master
The above creates a file called myrepo.bundle. I then took a md5 hash of it and emailed it to him (the body of the email had the md5 for verification)
md5 myrepo.bundle MD5 (myrepo.bundle) = <some hash>
On the remote end he would extract it like:
git clone -b master /tmp/myrepo.bundle















