Skip to content

Instantly share code, notes, and snippets.

@dima2306
dima2306 / identify_large_files.sh
Created August 5, 2018 10:07 — forked from sahilseth/identify_large_files.sh
At times .git folder becomes much larger than the code base, and needs shrinking
#!/bin/bash
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
#
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
# @author Antony Stubbs
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output