Skip to content

Instantly share code, notes, and snippets.

@HansCz
Created April 13, 2012 11:43
Show Gist options
  • Save HansCz/2376190 to your computer and use it in GitHub Desktop.
Save HansCz/2376190 to your computer and use it in GitHub Desktop.
Git - zip a git repo root folder while ignoring git files and copying it somewhere
# zip a git repo root folder while ignoring git files and copying it somewhere
cd my_git_repo
git archive HEAD --format=zip --output=somewhere/in/the/fie/system/my_zipped_git_repo.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment