Skip to content

Instantly share code, notes, and snippets.

@andjc
Forked from LeonardoCardoso/gitzip.sh
Created March 23, 2023 11:46
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 andjc/e9a84d2a43adc1d9637f7baa01c00f1c to your computer and use it in GitHub Desktop.
Save andjc/e9a84d2a43adc1d9637f7baa01c00f1c to your computer and use it in GitHub Desktop.
Zip folder ignoring files listed on .gitignore
#...
function gitzip() {
git archive -o $@.zip HEAD
}
#... gitzip ZIPPED_FILE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment