I have a repo when cloned is 43GB where the src files are just 2GB. ./git/objects folder is 41GB in total. I did some cleaning to remove the large files from history and was able to reduce the size of repository to 3.6GB in local. Now, I want to push these changes to remote and I tried the below commands, but I'm seeing Everything up-to-date because there are no changes to src files.
git push origin --force --all
git push origin --force --tags
git reflog expire --expire=now --all
git gc --prune=now
After running the above commands, When I clone the repository, it's size is 43GB. How can i overwrite the .git folder in remote ?
The remote is hosted on bibucket.