Mastering Git Rebases: Achieve More Control with git rebase — onto

Solving two common rebase problems in practise

Oliver S
Better Programming
Published in
6 min readAug 10, 2023

--

Photo by insung yoon on Unsplash

In this article, we talk about git rebase for some common, real-life problems. In particular, we discuss using git rebase --onto to work with stacked PRs, and tackle the following scenarios:

  • rebase to the base branch after this got rebased itself

--

--