Friday, March 2, 2012

Backup Local Git Repo

I wanted to backup my local git repo into a single file that I could save it to an external storage.


Create a bundle for my git repo:


git bundle create myrepo.bundle master


Create the repo from the bundle:


git clone myrepo.bundle -b master myrepo

No comments:

Post a Comment