Skip to main content
2 of 2
added 21 characters in body
KcFnMi
  • 6.4k
  • 17
  • 84
  • 181

Move commit made in detached HEAD back to branch, but not on top

  1. I was on current branch and did commit good.
  2. Then I commited irrelevant.
  3. I went back, checked out good (detached HEAD now).
  4. I did commit one, in detached HEAD state.

I would like to have some help to put one just after good, in current branch.

It doesn't matter if I lost irrelevant.

KcFnMi
  • 6.4k
  • 17
  • 84
  • 181