This post is over a year old, some of this information may be out of
date.
Create a bundle
git bundle create ../myrepo.bundle master
Verify the bundle
git bundle verify ../myrepo.bundle
Deploy the bundle
- This is the important part
mkdir newrepo
cd newrepo
git init
git bundle unbundle ../myrepo.bundle
git merge f7243b
where f7243b is the COMMIT ref showing beside HEAD
Reference
Best instruction for git backup - Utappia: Create a backup or a bundle of your git repository... https://t.co/QSvHjblzPn
— Ian Lim (@mallim) July 29, 2019