Skip to content

Instantly share code, notes, and snippets.

@headupinclouds
Forked from simonw/how-to.md
Created February 3, 2018 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headupinclouds/9198f843380116ed9a4d10d46f9959ad to your computer and use it in GitHub Desktop.
Save headupinclouds/9198f843380116ed9a4d10d46f9959ad to your computer and use it in GitHub Desktop.
How to create a tarball of a git repository using "git archive"
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment