Skip to content

Instantly share code, notes, and snippets.

View CharlesB2's full-sized avatar

Charles Brossollet CharlesB2

View GitHub Profile
@CharlesB2
CharlesB2 / shrink-git-repo.sh
Last active January 5, 2018 07:23 — forked from aaronzirbes/shrink-git-repo.sh
This script will help you remove large files from your git repo history and shrink the size of your repository. (fixed for files having space)
#!/bin/bash
echo "Finding and Purging Big Files From Git History"
echo "=============================================="
echo ""
echo "http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history/"
echo ""
pushd "$(git rev-parse --show-toplevel)" > /dev/null