Skip to content

Instantly share code, notes, and snippets.

@mccv
Created April 11, 2014 19:06
Show Gist options
  • Save mccv/10493009 to your computer and use it in GitHub Desktop.
Save mccv/10493009 to your computer and use it in GitHub Desktop.
git-dumdum
#!/usr/bin/env ruby
files = `find . -name .git -prune -o -size +10000`
files.each do |file|
cmd = "git ls-files #{file.strip} --error-unmatch > /dev/null 2>&1"
if system(cmd)
puts `du -sh #{file}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment