Skip to content

Instantly share code, notes, and snippets.

@kvangork
kvangork / giratchive.sh
Created October 18, 2012 18:25 — forked from markrickert/giratchive.sh
Git Archive Bash Script
#!/bin/bash
# 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.