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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:18:30+00:00 2026-06-07T12:18:30+00:00

I am sure there’s a bunch of GIT users out there who’s had this

  • 0

I am sure there’s a bunch of GIT users out there who’s had this problem:

  1. Create a branch from master. Let’s call it featureX.
  2. Somewhere, while working on featureX, you realize you want to make a fixup of a previous commit:
    • You commit your fix.
    • You do your rebase and squash/fixup.
  3. Later you would like to rebase against your master to incorporate the latest changes into featureX.
  4. Things break because your branches have diverged (the fixup was not done in master). You have a bad day.

This is the second time this has happened to me. The first time, I didn’t have very much history in featureX and simply made a new branch off of master. What’s your take on this? How would you solve this? Is it possible to git reset a certain reflog? In that case I could undo the rebase and move the fix commit back on top of featureX (using interactive rebase).

I’m sure there are different ways to go about it, but I guess this is a common problem.

  • 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-07T12:18:32+00:00Added an answer on June 7, 2026 at 12:18 pm

    Yes you can reset any branch to anything that was checked out before (the reflog). Because your fixup is still in FeatureX, the rebase will behave no different than if you don’t do the fixup – it only matters if the divergence of master has conflicts with any of the commits in the featureX branch – fixups or not.

    Secondly, when people first learn git, the fall in love with the awesomeness of rebasing. But I’ve gone back to merging. It’s simpler, it marks history as it happened and it forces some discipline. Here is my workflow: http://dymitruk.com/blog/2012/02/05/branch-per-feature/

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

Sidebar

Related Questions

Im sure there is a very simple solution for this. I have a bunch
I'm sure there's an answer out there but due to the ambiguity of this
i'm sure there is a simple way to solve this problem, but I can't
I'm sure there's a simple method or function out there to do this (at
Whilst I am sure there's a duplicate question of this out there, because I
I'm sure there's a better way to do this. I'm trying to create a
I'm sure there are a million posts about this out there, but surprisingly I'm
I'm sure there are different approaches to this problem, and I can think of
Pretty sure there is an easy answer to this, but just can't find the
I'm sure there's a really simple solution to this but I can't wrap my

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.