Cleanup .git remote directory

Hi!
I am trying to clean .git directory on the master branch. It’s 275Mb
So I run:
git filter-branch --force --index-filter
‘git rm --cached --ignore-unmatch *.pdf’
–prune-empty --tag-name-filter cat – --all

git for-each-ref --format=“delete %(refname)” refs/original | git update-ref --stdin
git reflog expire --expire=now --all
git gc --prune=now

After that the local branch is 25Mb
But after
git push origin --force --all
The .git directory on the remote branch is not less that it was even more!
What do I wrong?
Thanks

Does the status change after you trigger a manual housekeeping command on the repository, to trigger a gc and repack on the remote server?

From my project under Settings > General > Advanced I clicked “Run housekeeping”. It didn’t change anything. The project’s size remain the same.

Is there any update on this. I have the same issue. If I trigger Housekeeping manually, I get the information Housekeeping started successfully but then nothing happens