Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created November 16, 2012 19:29
Show Gist options
  • Save ejhayes/4090143 to your computer and use it in GitHub Desktop.
Save ejhayes/4090143 to your computer and use it in GitHub Desktop.
Git Export - functions just like a subversion export. Very nice!
git archive --format=zip --remote=git@git:project.git master some/path other/path -o whatever.zip
git archive --format=zip --remote=git@git:project.git master:some/path -o whatever.zip
git archive --format=tar --remote=git@git:project.git master:some/path | tar -xf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment