Move branch from master commit to previous commit
Suppose I have commits
COMMIT_1
COMMIT_2
in my branch master
. I created checkout
from COMMIT_2
to create a new branch bugFix1
, but then realized that I could not merge the changes COMMIT_2
to the main repository yet because they were not approved.
So how do I move my branch to the previous COMMIT_1
one without affecting my changes in the branch bugFix1
? I don't want to have a change COMMIT_2
.
Sorry for my poor illustrator skills
source to share