Command

git rebase

Replay applicable commits onto a new base; normally replaces commit identities. Prefer private branches.

Formal Syntax & Structure

git syntaxgit
git rebase [options] UPSTREAM
Git Reference