How to Back Up a Git Repository to One File

1. Create

git bundle create backup.bundle --all

2. Verify

git bundle verify backup.bundle

3. Restore

git clone backup.bundle

ℹ️ Feel free to change the backup.bundle file name

This post and comments are published on Nostr.