I accidentally moved a branch in GitX (drag&drop using the mouse) onto another branch. Now, both branch labels point at the same tip(!) and I cannot see the commits done on the moved branch.
Using git reflog
I wanted to see that change and undo it, but nothing got logged.
What is the recommended way (graphical or in terminal) to undo that move operation from GitX? Menu->Edit->Undo does not offer going back.
(Background: I thought that the move operation would also carry the commits, i.e., like a rebase, but it doesn't.)
My understanding: You had
You then accidentally moved develop on commit C (same as master).
You then get
If you want to move branch "develop" back to "commitE", you should use the git branch command:
The command has to be used when your HEAD is on another branch. So in the example above, I would do:
So that my HEAD is located on branch "master", followed by
This should switch you back to your initial state, i.e.