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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:37:08+00:00 2026-05-16T00:37:08+00:00

I half realize that this question is probably asked already, but I’m not familiar

  • 0

I half realize that this question is probably asked already, but I’m not familiar with the jargon and I need a really easy to follow answer perhaps a little too specific to my particular needs.

I forgot to remove the object files and then performed a git add -A. I then scanned a few man pages and used some kind of interactive mode and after some attempts had the object files removed.

I then performed a git push origin master to ‘upload’ the files to the remote server on github.com. It turned into three commits.

So my last four commits consist of:

  • 0) A past commit which is fine and dandy.
  • 1) A commit with the object files plus the code changes
  • 2) A commit where the object files are removed.
  • 3) A commit where added a .gitignore file (that someone sent to me over a month ago).

Basically I want the there to be one commit after 0, the diff of which should show all the changes except any evidence of those goddamn object files. How do I do this, if it is possible, please?

  • 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-16T00:37:09+00:00Added an answer on May 16, 2026 at 12:37 am

    Locally, use git rebase --interactive or your git tool of choice to get history like you like it. Then use git push origin master -f to force your version of master into the github repository.

    Be aware that revising already-published history means that you have to go to everyone who’s already pulled the revised changes and instruct them on getting the new changes, and rebasing away the old ones if they’ve done work on top of them.

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

Sidebar

Related Questions

I realize that there was a similar question asked here , but this is
Let me first say that I realize this question is vague and does not
I have spent about half a day searching for an answer to this question
I wrote a price calculator for a friend (runescape dungeoneering, but that's not particularly
I do really like key-chord.el but I'd need it to only trigger when I
I'm half-tempted to write my own, but I don't really have enough time right
This an excerpt from my assembly program First: dw 0xaabbccdd Now I realize that
Half a year ago, I tried Visual Studio 2010 Beta 1, but it was
For the sake of this question, I don't care about the difference between stubs,
I'm working on a web site project that is currently tracked in svn but

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.