Skip to content

Instantly share code, notes, and snippets.

@spadin spadin/.gitconfig
Created Jul 11, 2013

Embed
What would you like to do?
Create a zip archive of your current git branch.
[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
You can’t perform that action at this time.