I would like to split my work into two branches, so I would like to assign a new branch name to the current tip and move my current branch name back 3 commits. The 3 new commits have not yet been pushed.
I currently have this:
branch1 F - G - H
/
origin/branch1 C - D - E
/
master A - B
And I would like this:
branch2 F - G - H
/
branch1, origin/branch1 C - D - E
/
master A - B
I already created branch2
:
git checkout -b cleanup_exchanges
Could you please advise me on the next step, to take branch1
back a few commits without moving branch2
?