Skip to content

Instantly share code, notes, and snippets.

@tmr111116
Created October 9, 2012 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmr111116/3857971 to your computer and use it in GitHub Desktop.
Save tmr111116/3857971 to your computer and use it in GitHub Desktop.
zip でアーカイブする git のエイリアス。
[alias]
root = rev-parse --show-toplevel
basename = ! basename `git root`
zip = ! git archive --format=zip --output=`git basename`.zip HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment