Skip to content

Instantly share code, notes, and snippets.

@JefMari
Forked from simonw/how-to.md
Created November 17, 2017 12:25
Show Gist options
  • Select an option

  • Save JefMari/0f6303c0d98fd644c9d7095de6fcb63e to your computer and use it in GitHub Desktop.

Select an option

Save JefMari/0f6303c0d98fd644c9d7095de6fcb63e 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