top | item 2271131

The sneakernet in git - trivial backup of personal repositories

36 points| Superfud | 15 years ago |object.io

4 comments

order

xyzzyb|15 years ago

This will only backup the master (or any other specified) branch. I find it's better to just have a bare repo in dropbox added as a remote called "dropbox" and use:

    $ git push dropbox --all
or

    $ git push dropbox --mirror

callahad|15 years ago

Mercurial has an identically named feature: http://www.selenic.com/mercurial/hg.1.html#bundle

Quite useful at times.

wladimir|15 years ago

It seems to do a subtly different thing by default, though: the git bundle makes a bundle out of the entire repository. The hg bundle bundles the commits that are 'not known to be in another repository'.