Skip to content
Latchkey

Rebase - CI/CD Glossary Definition

Rebase replays your commits on top of another base commit, rewriting their SHAs to produce a linear history. git rebase main moves your branch commits to start from the tip of main.

Rebase replays your commits on top of another base commit, rewriting their SHAs to produce a linear history. git rebase main moves your branch commits to start from the tip of main.

Rebase replays your commits on top of another base commit, rewriting their SHAs to produce a linear history. git rebase main moves your branch commits to start from the tip of main.

Caution

Rebasing rewrites commit hashes, so never rebase commits that others have already pulled. On a shared branch this forces everyone else into conflicts.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →