Soft Serve Maintenance

Over time git repositories become bloated with old data, but never get cleaned. I can't find an official way to clean up the crud, so I did this:

 1usermod -aG soft-serve $USER
 2# Log out and back in for this to take effect.
 3
 4cd /var/lib/soft-serve/data/repos
 5sudo chmod -R g+w *
 6git config --global --add safe.directory '*'
 7du -sh *.git
 8for repo in *.git; do
 9    git -C "$repo" gc
10done
11du -sh *.git
12$EDITOR ~/.gitconfig
13# You should remove having everything marked 'safe'.