Skip to content

Instantly share code, notes, and snippets.

@rtyley
Last active October 13, 2015 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtyley/4203146 to your computer and use it in GitHub Desktop.
Save rtyley/4203146 to your computer and use it in GitHub Desktop.
Gets a list of all blobs ever contained in your repo, along with their associated filename (quite slow)
git verify-pack -v .git/objects/pack/*.idx | grep tree | cut -c1-40 | xargs -n1 -iX sh -c "git ls-tree X | cut -c8- | grep ^blob | cut -c6-" | sort | uniq
@rtyley
Copy link
Author

rtyley commented Feb 4, 2013

Since writing this gist I've created The BFG Repo-Cleaner, a faster, simpler alternative to git-filter-branch for cleansing bad data out of your Git repository history:

  • Removing Crazy Big Files
  • Removing Passwords, Credentials & other Private data

The BFG is 10 - 50x faster than git-filter-branch, turning an overnight job into one that takes less than ten minutes.

http://rtyley.github.com/bfg-repo-cleaner/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment