In article How to change parent branch in git? I talked quickly about using git rebase --onto in a case when you want to replace the current parent branch. But git rebase --onto is more than just replacing parent branch. We can do much more with git rebase --onto help. It’s a good topic to take a look closely. To use it freely first, you need to understand it.