Created
July 23, 2018 12:38
-
-
Save mmar/b57098a7abf7239caaf31e48db474f65 to your computer and use it in GitHub Desktop.
Backup git repository to a single file using `git bundle`. You can put this in your path and call it as `git backup`.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git bundle create ~/Backups/`basename $PWD`.git --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment