Created
July 11, 2013 20:58
-
-
Save spadin/5979195 to your computer and use it in GitHub Desktop.
Create a zip archive of your current git branch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
# Zip archive of current branch | |
# Usage: `git zip [filename]`, eg: `git zip ~/Desktop/source.zip` | |
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