---
title: Mergify Rebase Command
description: Rebase a pull request.
---

The `rebase` command provides users with an instant method to instruct Mergify
to rebase a pull request against its base branch. It's a handy way to ensure
that the pull request is updated with the latest changes from the base branch
without manually triggering a rebase.

The `rebase` command lets developers keep their pull requests up-to-date and
maintain a clean commit history.

<RebaseAdvantage />

:::caution
  Rebasing fork pull requests using `bot_account` impersonation is
  deprecated. Use the [`update` command](/commands/update) instead for fork
  PRs.
:::

## Syntax

To make use of the `rebase` command, simply comment on the desired pull
request:

```text
@mergifyio rebase
```

<Image src={rebaseScreenshot} alt="Posting '@mergifyio rebase' in GitHub interface"/>
