Git bundles can be a helpful way to transfer repos when a direct connection between servers or workstations isn’t possible (or via email, for example).

The bundle command is used to create an archive of the repo:

$ git bundle create myproject.bundle master

This command creates a bundle for myproject based on the master branch. A bundle can be created for any reference as used by git-show-ref.

To unbundle the archive, use the following command:

$ git clone myproject.bundle -b master myproject

This clones branch master from this bundle to the directory myproject.