Pushed build file in multiple commits in one branch and now i want to delete the that file, so i used BFG Tool to delete the file but i cannot delete that from remote repository, Seeing this below error and with help of BFG Tool, I reduced the size to less than 4GB and still I am not able to push.
$ git push --force
Enumerating objects: 2669, done.
Counting objects: 100% (104/104), done.
Writing objects: 100% (2669/2669), 386.78 MiB | 2.36 MiB/s, done.
Total 2669 (delta 104), reused 104 (delta 104), pack-reused 2565 (from 1)
remote: Resolving deltas: 100% (1717/1717), completed with 51 local objects.
remote: Repository is over the size limit (4 GB) and will not accept further additions. remote: remote: Learn how to reduce your repository size: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits. To <url> ! [remote rejected] phase2.0 -> phase2.0 (pre-receive hook declined) error: failed to push some refs to <url>
After running git count-objects -vH
$ git count-objects -vH count: 0 size: 0 bytes in-pack: 3765 packs: 1 size-pack: 397.44 MiB prune-packable: 0 garbage: 0 size-garbage: 0 bytes