Skip to content

Instantly share code, notes, and snippets.



Created Jul 11, 2013
What would you like to do?
Create a zip archive of your current git branch.
# Zip archive of current branch
# Usage: `git zip [filename]`, eg: `git zip ~/Desktop/`
zip = !sh -c 'git archive --format zip --output $1 `git rev-parse --symbolic-full-name --abbrev-ref HEAD`' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment