Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 313 Bytes

git-rebase.md

File metadata and controls

20 lines (14 loc) · 313 Bytes

Git Rebase

The git rebase command rewrites commit history by moving branches.

Usage

git rebase <branch>

Explanation

  • Reapplies commits from the current branch onto the target branch.

  • Creates a linear commit history.

Example

git checkout feature-login
git rebase main