Git Zip branch
So here is my little alias to share:
zip = "!zipArchive() { git archive --format zip --output $1 $2; }; zipArchive"
Usage:
git zip /path/to/outputflie.zip branchName
Ex:
git zip version1.zip master
Side tip : I actually use it in a post receive hook
to generate an archived zip file for remote download.
Enjoy!
Written by raz ohad
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Alias
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#