Skip to content

Instantly share code, notes, and snippets.

@masbicudo
masbicudo / git-find-big-files-in-hist.sh
Created March 23, 2019 00:43
Script to find large files in git history
#!/bin/bash
# This code is based on the awesome answer by @torek from StackOverflow:
# https://stackoverflow.com/a/41626019/195417
# I have only made a shell for his code, added some options, added some colors
# and voilà!
#
# This script can be used to find large files inside a git repository
# and it's whole history. It will list files larger than a given threshold,
# and display these files in a colored human readable way.
#