gitgitlabgit-gc

Repo still uses 8 GB of quota after force push to initial commit (empty repo)


The issue is that after doing git checkout <initial hash>; git push -f the quota used on the repo remotely is still 8GO (and so I am not able to push the history as 8+X > Quota).

What can I do to make gitlab reprocess the quota ? I triggered the warehousing but without any result.

The expected result is: quota 1ko (initial commit)


Solution

  • GitLab holds onto refs in hidden areas that are not advertised. Therefore, even force-pushing to advertised refs will not shrink the repository size. In order to actually reduce repository storage used, you'll need to follow the procedure for purging files from repository history.