Created
July 23, 2014 23:18
-
-
Save brendanashworth/1714f58e1acb0587d0d4 to your computer and use it in GitHub Desktop.
Create a .tar.gz archive from git, no external deps
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/bash | |
BRANCH=master | |
FORMAT=tar.gz | |
EXPORT_LOCATION=/tmp/backup.tar.gz | |
git archive $BRANCH -o $EXPORT_LOCATION --format $FORMAT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment