Safe to delete files in /home/git/gitlab/tmp/repositories/repo.git?

I’ve got a gitlab community instance running on a fairly small server. Repeated downloads from a comparatively large repository seem to be filling up the /home/git/gitlab/tmp/repositories/repo.git directory. Is it safe to delete those files?

When do those files normally get deleted?

In tmp/ you get files from generated tar archives every time someone asks to download the repo tarball. You can safely remove the contents. It is not done automatically, set up a cron job to clear the dir.

Also from your example, repositories/ seem to be created from the backup process, but the tmp contents get removed after a successful backup, not sure why you have it there.