Skip to content

Instantly share code, notes, and snippets.

@radarseven
Created February 11, 2013 14:56
Show Gist options
  • Save radarseven/4754884 to your computer and use it in GitHub Desktop.
Save radarseven/4754884 to your computer and use it in GitHub Desktop.
Git archiving - Add this to your .bash_profile
# Git archiving
function git_archive()
{
git archive --output="$1".zip HEAD $(git diff --name-only "$1" "$2" --stat)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment