git rebase --onto main feature base

Category: Git - Core

git rebase --onto main feature base

Rebase commits between base and feature onto main

Rebases only the commits between 'base' and 'feature' onto 'main' — useful for transplanting a sub-range of commits.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.