Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:17:00+00:00 2026-06-07T14:17:00+00:00

I have committed and pushed a too large file in bitbucket, and I’ve deleted

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:17:04+00:00Added an answer on June 7, 2026 at 2:17 pm

    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 reducing the site you need to contact bitbucket support so they can run git gc on your remote repository to actually get rid of the deleted commits/files.

    If you only want to remove the given file without nuking the whole commit, you can do it using git-filter-branch as explained in the GitHub docs (it’s not GH-specific):

    git filter-branch --index-filter 'git rm --cached --ignore-unmatch THE_FILE' \
    --prune-empty --tag-name-filter cat -- --all
    

    Obviously you need to replace THE_FILE with the name of the file you want to obliterate. After this you also need to perform a forced push.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully made, committed, and pushed changes to a central git repository. I
I have committed several files on GitHub but I want to pull only single
I have committed to learning C now, I'm good with Python/PHP/Bash but I've decided
Assume you have a file which has been committed in your Git repo. You
I have committed some changes (r5,6,7,8) to master and pushed to origin. Other people
I've just started with Mercurial, I have a 'central' repository on Bitbucket which I
I have a mercurial repository my_project , hosted at bitbucket. Today I made a
I have accidentally committed the .idea/ directory into git. This is causing conflicts everywhere
I have solved some merge conflicts, committed then tried to Push my changes and
I have two ActiveRecord models of the same class: #1: represents the current committed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.