Skip to content

Instantly share code, notes, and snippets.

@spenserlee
spenserlee / gitarchive.sh
Last active May 4, 2018 20:07 — forked from markrickert/giratchive.sh
Git Archive Bash Script
# Takes one parameter: a remote git repository URL.
#
# This is the stuff this script does:
#
# 1. Clones the repository
# 2. Fetches all remote branches
# 3. Compresses the folder
# 4. Deletes the cloned folder.
#
# Your remote repository is left untouched by this script.