Skip to content

Instantly share code, notes, and snippets.

@Eason0210
Forked from simonw/how-to.md
Created November 11, 2022 15:23
Show Gist options
  • Save Eason0210/e4e33dae2125257fa188f8afb454f698 to your computer and use it in GitHub Desktop.
Save Eason0210/e4e33dae2125257fa188f8afb454f698 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