Skip to content

Instantly share code, notes, and snippets.

@maneta
Created October 5, 2014 10:18
Show Gist options
  • Save maneta/a9b387003a390510fe96 to your computer and use it in GitHub Desktop.
Save maneta/a9b387003a390510fe96 to your computer and use it in GitHub Desktop.
Original Size
**************
dcesario@dcesario-Vostro-270:~/svnMigration/8belts/8belts_web$ du -h --max-depth=1
26M ./metodoanxo
129M ./ENMORE
132M ./EN
12M ./maquetacion_publica
859M ./PRE
36M ./Nueva
259M ./nuevo.8belts.com
1,2M ./Documentacion
169M ./PRO
4,6G ./.git
6,2G .
********
$ perl reduce_git.pl 1m
$ git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch EN/*.ogg EN/*.swf ENMORE/*.ogg ENMORE/*.swf ENMORE/LaRuta/cont/guias/*.pdf Nueva/oij/font/*.svg Nueva/oij/images/*.jpg PRE/*.flv PRE/*.mp3 PRE/*.mp4 PRE/*.ogg PRE/*.swf PRE/*.ogv PRE/*.webm PRE/curso/cont/comprension/*.mp3 PRE/nueva/test8belts/img_nueva/*.jpg' --prune-empty -- --all
dcesario@dcesario-Vostro-270:~/svnMigration/8belts/8belts_web$ du -h --max-depth=1
26M ./metodoanxo
90M ./ENMORE
94M ./EN
12M ./maquetacion_publica
218M ./PRE
31M ./Nueva
259M ./nuevo.8belts.com
1,2M ./Documentacion
169M ./PRO
2,1G ./.git
3,0G .
-----------------------------------------------
$ perl reduce_git.pl 500k
$ git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch EN/LaRuta/admin/lib/dompdf/lib/fonts/*.ttf EN/LaRuta/admin/lib/dompdf/www/test/*.jpg EN/LaRuta/config*.svg EN/LaRuta/images/*.jpg ENMORE/LaRuta/admin/lib/dompdf/lib/fonts/*.ttf ENMORE/LaRuta/config/*.svg ENMORE/LaRuta/*.jpg PRO/*.ogg PRO/*.swf PRO/*.flv PRO/*.mp4 PRO/*.webm maquetacion/LaRuta/cont/comprension/*.mp3 ' --prune-empty -- --all
dcesario@dcesario-Vostro-270:~/svnMigration/8belts/8belts_web$ du -h --max-depth=1
26M ./metodoanxo
73M ./ENMORE
78M ./EN
12M ./maquetacion_publica
218M ./PRE
31M ./Nueva
259M ./nuevo.8belts.com
1,2M ./Documentacion
169M ./PRO
743M ./.git
1,6G .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment