I'm writing an example application for a book.
Every important commit is tagged (e.g. Ch01_Ex04, Ch03_Ex01) so that readers can get straight to the state of the application that they're interested in.
Every now and then I change my mind about something I did in the exxample and I'd like to go back in time and change, for example, a class name. I want that change to be applied from a given commit, without me needing to reset all the tags.
Say I have:
Tag1 Tag2 Tag3
| | |
- A - B - C - D - E
|
HEAD
Now I want to make a change between B and C, so I branch from B and make the change, and I have:
Tag1 Tag2 Tag3
| | |
- A - B - C - D - E
\ |
F HEAD
What I want to get to is:
Tag1 Tag2 Tag3
| | |
- A - B - F - C - D - E
|
HEAD
I can't get my head around how to do this. Is there a way?