Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created November 26, 2019 23:43
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 ahmadawais/4824f6b6d3eddebd1839c317b4c1e834 to your computer and use it in GitHub Desktop.
Save ahmadawais/4824f6b6d3eddebd1839c317b4c1e834 to your computer and use it in GitHub Desktop.
#OneDevMinute: Git archive the current directory and ignore everything in .gitignore file.
# Git archive the current directory
# and ignore everything in .gitignore file.
# Usage: garc zipname
alias garc="git archive -o $1.zip HEAD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment