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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:23:50+00:00 2026-05-26T12:23:50+00:00

Unfortunately we accidently checked in a large binary file some time ago and until

  • 0

Unfortunately we accidently checked in a large binary file some time ago and until today nobody noticed. Now I want to drop that commit and have the remaining history as it is. I know about the caveats of changing pushed history but in this case I cannot avoid it.

I have been trying to achieve that for ~1h but fail to get it. The best command I found is

git rebase --interactive --preserve-merges $(EVIL_COMMIT)^

and in the editor commenting out the 1st commit which is the evil one.

Unfortunately git rebase stops at merges and prompts for manual resolution of merge conflicts. The evil commit only adds some example files our software shall compute for testing purposes. Thus their shouldn’t be any conflict with the example files just missing.

  1. I do not understand where the merge conflicts originate from. Somebody can explain?
  2. How to resolve that?

I’ve spent quite a lot of time at Google and SO search. Some threads cover a similar topic but either syntax used is not available in today’s Git version anymore or it didn’t work for me (I only described one method above because it’s the easiest approach).

  • 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-05-26T12:23:51+00:00Added an answer on May 26, 2026 at 12:23 pm

    I’d go with filter-branch:

    git filter-branch --prune-empty --index-filter '
      git rm --cached --ignore-unmatch path/to/file
    ' --all
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unfortunately, both OLEDB and FileUploadControl seem to want a path. Right now, this works
I have been investigating for some time now a way to prevent my user
Unfortunately, there seems to be no string.Split(string separator), only string.Split(char speparator). I want to
Unfortunately, despite having tried to learn regex at least one time a year for
I have a file x.cpp which a while ago contained, say, AAAAAAA. I accidentally
Unfortunately I've found that sometimes code I'm writing, while perfectly fine at run-time, causes
Unfortunately my knowledge of NANT stuff is very limited but embarked today on updating
Unfortunately, I'm working with some 3rd party javascript, which inserts links into my pages.
Unfortunately, I'm doing some work on a (legacy) project that is build with ASP.NET
Unfortunately after very long time i'm re-posting again about the same problem: org.apache.jasper.JasperException: The

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.