Git Odds and Ends
$ git gc — Internally optimizes the way Git stores its history, the --aggressive parameter takes things one step further by recalculating the deltas from scratch.
$ git archive --format=<zip or tar> --prefix=<prefix>/ HEAD > filename.zip — Valid format types are tar and zip.
$ git archive --format=tar --prefix=<prefix>/ <HEAD, commit hash, branch, or tag> | gzip > filename.tar.gz — Pipe into gzip