I have situation like this: on branch design-decisions.
Latest commits:
Design Option 2
Design Option 1
I want to checkout commit 'Design Option 1' and use it to create commit 'Design Option 3'. I don't want to lose or modify commits 'Design Option 1' or 'Design Option 2'.
I know that I can check out commit Design Option 1 with this command:
git checkout HEAD~1
Then I get this message: "You are in 'detached HEAD' state."
That's not really helpful as I don't understand what's the big deal with detached HEAD.
Why can't I just work like usual from detached head? Why won't this work?
// Make changes
git add .
git commit -m "Design Option 3"
git push
I would prefer not to create new branch and just tell git shut up and create new commit from this detached head state without merging stuff and so on.
How to make it work?