I am sure that there is a GIT group of users who have had this problem:
- Create a branch from the wizard. Let me call it featureX.
- Somewhere, while working on featureX, you realize that you want to fix the previous commit:
- You commit your fix.
- You do your reboot and squash / patch.
- Later, you would like to reinstall your host to incorporate the latest changes in featureX.
- Things break because your branches diverge (the fix was not done by the wizard). You have a bad day.
This is the second time this has happened to me. The first time I didnβt have much history in featureX and just made a new branch from the master. What do you take on? How would you solve this? Is it possible to git reset to create a specific log? In this case, I could undo the rebase and move the fix fix on top of the X function (using interactive rebase).
I am sure there are different ways to do this, but I think this is a common problem.
source share