I have made two commits into wrong branch. What I’d like to do, but don’t want to break something is to remove these two commits and put them into correct branch.
What I have done is:
git checkout -b newbranch origin/release/xyz
I have SHA1 commit checksums. What I found is that I should start rebasing from the one commit before. But It is not explained why, so I am not entirely sure abut that. What should be the next step?