I am sure there's a bunch of GIT users out there who's had this problem:
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With