# git rebase

say it: **“GIT REE-bays”** **/ɡɪt ˈriˌbeɪs/**

Replays commits onto a new base and replaces them with newly created commits.

## What does **git rebase** do?

**git rebase** — Replays commits onto a new base and replaces them with newly created commits.

```bash
git rebase main
```

Level: Journeyman · [More Git terms at this level](https://www.ask-codey.com/glossary?category=git&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/git-rebase
