Syntax

Untitled Database

Keep in mind that rebase rewrites the repository history.

Rebasing commits that exists in the remote repository could rewrite repository nodes used by other developers as base node for their developments. Unless you really know what you are doing, it is a best practice to rebase before pushing your changes.

Rebase local branch

Rebase ours and theirs local and remote

Interactive rebase

Rebase down to the initial commit

Configure autostash

Rebase before a code review

Test all commits during rebase

Setup git-pull for automatically perform a rebase instead of a merge

Abort an interactive rebase

Pushing after a rebase