Lets say I have 3 git commits:
- Commit changes on sidebar
- Commit changes on footer
- Commit changes on header
Now lets assume I have went trough spiritual awakening and realized that only changes I need is on the header and one the sidebar, the footer was fine and did not needed to be changed.
Is there a command that would do the following?:
- merge commit#3 minus commit#2
- delete commit#2
- merge commit#3 plus commit#1
(or any other method that makes commit#2 as it never happened).
You can always just revert the changes from a single commit using
git-revert.So: