Command

Git Rebase onto Branch Command

The Git command to rebase onto branch is git rebase <branch>.

Quick Answer

Command
git rebase <branch>
GitCommand

Rebase onto Branch

Type this command
git rebase <branch>

Reapplies your commits on top of another branch.

Learn More

How to rebase onto branch in Git

  1. Open the terminal or command interface for Git.
  2. Type git rebase <branch>, replace any placeholders, and run it.

Git Rebase onto Branch Command

Run git rebase <branch>.

Related Commands

Frequently asked questions

What is the Git command to rebase onto branch?

Run git rebase <branch>.

Where do I type this Git command?

Type it in the terminal or command-line interface used by Git.

Does this Git command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify