git rebase --onto <newbase> <oldbase>
Before After A---B---C---F---G (branch) A---B---C---F---G (branch) \ \ D---E---H---I (HEAD) E---H---I (HEAD)
corresponding command: git rebase --onto F D
From: Enrico Campidoglio (https://stackoverflow.com/questions/29914052/how-to-git-rebase-a-branch-with-the-onto-command#:~:text=git%20rebase%20--onto%20allows%20you%20to%20rebase%20starting,precisely%20on%20top%20of%20F%20starting%20from%20E.)