-
-
Save afeish/60b4151613ee71d2ebbfd437b88b1280 to your computer and use it in GitHub Desktop.
How to create a tarball of a git repository using "git archive"
This file contains hidden or 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
# archive the entire repo | |
git archive --format=tar.gz -o fastone-upgrade-guide.tar.gz --prefix=fastone-upgrade-guide/ master | |
# archive the given directory[upgrade] of the repo | |
git archive --format=tar.gz -o fastone-upgrade-guide.tar.gz --prefix=fastone-upgrade-guide/ HEAD:upgrade/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment