Skip to content

Instantly share code, notes, and snippets.

@vinniefalco
Created April 14, 2012 21:13
Show Gist options
  • Save vinniefalco/2387905 to your computer and use it in GitHub Desktop.
Save vinniefalco/2387905 to your computer and use it in GitHub Desktop.
git clone --mirror git://github.com/vinniefalco/DSPFilters.git DSPOrig
rm -rf DSPFilters DSP1
git clone --no-hardlinks DSPOrig DSP1
cd DSP1
git filter-branch --prune-empty --index-filter 'git rm -rfq --cached --ignore-unmatch shared/DSPFIltersDemo/BUilds/MacOSInstaller/InstallerTemplate.sparseimage' HEAD
git gc --aggressive
cd ..
git clone --no-hardlinks DSP1 DSPFilters
cd DSPFilters
# displays the largest objects in the repo
if [ -d .git ]; then
git verify-pack -v .git/objects/pack/pack-*.idx \
| grep blob | sort -k3nr | head -n 50 \
| while read s x b x; do git rev-list --all --objects \
| grep $s | awk '{print "'"$b"'",$0;}'; done
else
git verify-pack -v objects/pack/pack-*.idx \
| grep blob | sort -k3nr | head -n 50 \
| while read s x b x; do git rev-list --all --objects \
| grep $s | awk '{print "'"$b"'",$0;}'; done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment