-
-
Save farskid/5522b18d2dd6627ac8668b8555b15b75 to your computer and use it in GitHub Desktop.
Zip folder ignoring files listed on .gitignore
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
#... | |
function gitzip() { | |
git archive -o [email protected] HEAD | |
} | |
#... gitzip ZIPPED_FILE_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#if you want the file to have the name of the current folder if you're lazy about typing the zipfile name
git archive HEAD -o ${PWD##*/}.zip