You’ve made one or more commits, and now realise they’re on entirely the wrong branch. So how can you make Git move a commit to another branch, either a new branch, or perhaps an existing one?
You’ve made one or more commits, and now realise they’re on entirely the wrong branch. So how can you make Git move a commit to another branch, either a new branch, or perhaps an existing one?
After a git merge, you realise that you’d like to create a better history, as if you had used git rebase on the branch instead of merging it. Find out how here.