1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 23:17:56 +01:00
tldr/pages/common/git-rebase.md
2016-01-21 13:08:45 +01:00

465 B

git rebase

Apply local commits on top of another branch's history.

  • Rebase your local branch interactively with the latest changes in local master:

git rebase -i master

  • Rebase your local branch interactively with the latest changes from upstream:

git fetch origin; git rebase -i origin/master

  • Handle an active rebase merge failure, after editing conflicting file(s):

git rebase --continue

  • Abort a rebase in-progress:

git rebase --abort