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 8787643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:56:31+00:00 2026-06-13T21:56:31+00:00

I accidentally committed and pushed a big bitmap (35MB) which I forgot to delete

  • 0

I accidentally committed and pushed a big bitmap (35MB) which I forgot to delete from my project’s directory and which turns out to be totally useless. Is that something I should worry about?

Since that time I haven’t pushed nor committed anything. Also nobody pulled it. What are my options to fix this commit? Is it necessary/recommended?

  • 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-13T21:56:33+00:00Added an answer on June 13, 2026 at 9:56 pm

    If you know that nobody has pulled from the repository, that suggests that you’re in good communication with everyone who might be pulling from the repository. In that case, I would be inclined to rewrite history to remove that file – it’s annoying to bloat everyone’s repositories by 35MB for no good reason. You can do that by telling your colleagues not to touch the repository, resetting to the last-but-one commit as soon as possible, and then force-pushing your reset branch. You’ve said that your most recent commit was the one that included the bitmap, so (assuming you’re in the master branch, and pushing to master in origin) you can do the following:

    # Move your current branch back so that it points to the previous commit,
    # but leave your working tree as it was (but with everything unstaged):
    git reset HEAD^
    
    # Force push your master branch to the remote repository:
    git push -f origin master
    

    Then you can carry on as before, this time being careful not to stage the large bitmap 🙂

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

Sidebar

Related Questions

I have accidentally committed the .idea/ directory into git. This is causing conflicts everywhere
I accidentally committed to the wrong branch. How do I delete that commit?
I accidentally selected Exclude from Subversion from the VisualSVN menu on my VS2008 project
Accidentally I forgot to open a new branch and committed my changes to the
I've accidentally committed bunch of files locally, but didn't pushed. So basically what I
We are trying to add to .cvsignore a previously and accidentally committed target directory
A few revisions ago I committed a piece of work in which I accidentally
I accidentally locally deleted a directory in a CVS repository, which I'm also managing
I accidentally committed some large test wav files into my repository and they are
I accidentally committed several files scattered around multiple directories. The good news is nobody

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.