Reduce repository size with git-filter-repo

We’ve got a locked repo due to the 10GB restriction. We’re following the instructions here to use git filter-repo to reduce so we can start making commits again:

Has anyone used this successfully? We’re following the instructions to the letter (I think), but we’re not seeing some of the things described, specifically…

The doc indicates Running git filter-repo removes all remotes and says to use git remote add origin to restore the remote - we haven’t observed this to be the case at all:

$ git remote add origin [](
fatal: remote origin already exists.

Also, after running git filter-repo --strip-blobs-bigger-than 2M, the file structure doesn’t appear to be a git repo at all:

drwxr-xr-x   4 jzinn  1649436473     128 Jul  9 11:50 info
-rw-r--r--   1 jzinn  1649436473  249830 Jul  9 11:50 packed-refs
drwxr-xr-x   6 jzinn  1649436473     192 Jul  9 11:50 filter-repo
drwxr-xr-x   5 jzinn  1649436473     160 Jul  9 11:50 refs
-rw-r--r--   1 jzinn  1649436473      23 Jul  9 11:41 HEAD
-rw-r--r--   1 jzinn  1649436473     178 Jul  9 11:36 config
drwxr-xr-x   4 jzinn  1649436473     128 Jul  9 11:36 objects
drwxr-xr-x  14 jzinn  1649436473     448 Jul  9 11:36 hooks
-rw-r--r--   1 jzinn  1649436473      73 Jul  9 11:36 description

Opened a support ticket with GitLab but nothing yet, falling behind in commits :unamused:

The file structure you see after running git filter-repo seems to be a bare repository (see GitLab stores bare repository, so, if you used the command on a bare repo, it is probably ok if the result is also a bare repo.

Another thing is that I am not sure which documentation you used. Please provide a link. Did you use this one: