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.