Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.