Downsize the repos

Hi,
Is it possile to use git-filter-repo or any other tools to downsize the repo?

I tried to clone a bare repo and use git-filter-repo to downsize the repo.
And the size of repo decreased. But when I pushed it back to the remote, it increased.

Another issue is that I used internal issue tracker (gitea.db), does this operation mass the system up? I mean if the commit hash is related to something?

There is a “garbage collect all repositories” button in the site admin dashboard:

screenshot

does this operation mass the system up? I mean if the commit hash is related to something?

yes