Skip to content

Instantly share code, notes, and snippets.

View f3rdy's full-sized avatar

Fred Thiele f3rdy

  • CDDS - Continuous Delivery and DevOps Services
  • Västernorrlands län
  • 21:41 (UTC +02:00)
View GitHub Profile
@f3rdy
f3rdy / git-largest-files
Created February 6, 2020 05:30 — forked from malcolmgreaves/git-largest-files
Python script to find the largest files in a git repository.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Updated to use Python 3 by Malcolm Greaves.
#
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# This gist is compatible with Ansible 1.x .
# For Ansible 2.x , please check out:
# - https://gist.github.com/dmsimard/cd706de198c85a8255f6
# - https://github.com/n0ts/ansible-human_log
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#