git rebase command

Rebasing is the process of moving or combining a sequence of commits to a new base commit.

Syntax git rebase <branch-name>

Bash

git rebase master

Here, master branch is used as the base branch.