Rebase the current branch onto another branch
CautionReplays the commits of the current branch on top of the other branch, giving them new hashes.
git rebase mainEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/git-rebase.md), licensed under CC BY 4.0.