# Repository size not reduced after git-filter-repo

**URL:** <https://forum.gitea.com/t/repository-size-not-reduced-after-git-filter-repo/12285>\
**Category:** Install/Maintain/Configure\
**Created:** [June 26, 2026, 5:32am UTC](https://forum.gitea.com/t/repository-size-not-reduced-after-git-filter-repo/12285 "2026-06-26T05:32:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerowalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/zerowalker/32/7448_2.png) [@Zerowalker](https://forum.gitea.com/u/Zerowalker)\
**Post date:** [June 26, 2026, 5:32am UTC](https://forum.gitea.com/t/repository-size-not-reduced-after-git-filter-repo/12285/1 "2026-06-26T05:32:48Z")

</div>

I have used git-filter-repo to remove 2 large files, and can confirm that locally the .git is reduced.  
then I force push and it all works fine.

However the size doesn’t reduce, it’s still more or less the same.  
I saw a previous topic: [Reducing repository sizes with filter-repo](https://forum.gitea.com/t/reducing-repository-sizes-with-filter-repo/5479)

And I tried to run “sudo -u git git gc --aggressive --prune=now” within the repos on the gitea server to no avail, it runs fine but the size doesn’t change.

Locally the .git is 2.56 MB, and in gitea it’s 11MB (like it was originally).
