Hi,
It looks like I am facing the same issue.
My git repo was 3.3Go.
I used bfg to remove one large file
then use git reflog and git gc
then push -f to rewrite history
It worked for develop branch, but now I can't do the same things for master branch because the size is now 4.04Go so my push is rejected.
I used git count-objects obtaining:
count: 0
size: 0 octet
in-pack: 7360
packs: 1
size-pack: 789.02 Mio
prune-packable: 0
garbage: 0
size-garbage: 0 octet
@kelkk I tried a solution with an other git repo.
After using bfg, git reflog and git gc, i create an other git repo and use on my initial local repo:
git remote set-url origin git@bitbucket.org:me/my-new-git.git
git push -f --all origin
it worked, but I don't want to redo all my git settings, variables, etc...