diff --git a/autocompile.sh b/autocompile.sh
index f794e44bbfb46adbfe34e9595aa8763036ffb16a..d2074bcb47fd3589f522d8a0cf2223ceb7eab2b7 100755
--- a/autocompile.sh
+++ b/autocompile.sh
@@ -9,6 +9,7 @@
 	cp config/main.tex . && \
 	ln -s config/autocompile.sh .
 
+git gc --auto
 
 if [ $1 = clean ]; then
 	rm -r *aux *log main.{i,g}* *toc *.ptc *.out svg-inkscape 2>/dev/null