How to remove deleted files from git?
I have committed and pushed a too large file in bitbucket, and I've deleted it locally, committed and pushed again. But on the site bitbucket the size of the repository is still too large. Sounds like you created a new commit where you deleted the file. That means the file still exists in the previous commit. What you need to do is rewriting history . Assuming the two newest commits are deleting and adding that file, you can do the following: git reset --hard HEAD~2 git push --force This will remove the two newest commits and then forcefully push it to bitbucket. In case that doesn't help