2015-12-29 23:54:20 +01:00
|
|
|
# git rebase
|
|
|
|
|
2016-01-21 13:08:45 +01:00
|
|
|
> Apply local commits on top of another branch's history.
|
2015-12-29 23:54:20 +01:00
|
|
|
|
2016-01-21 13:08:45 +01:00
|
|
|
- Rebase your local branch interactively with the latest changes in local master:
|
2015-12-29 23:54:20 +01:00
|
|
|
|
2015-12-30 18:36:58 +01:00
|
|
|
`git rebase -i master`
|
|
|
|
|
2016-01-21 13:08:45 +01:00
|
|
|
- Rebase your local branch interactively with the latest changes from upstream:
|
2015-12-30 18:36:58 +01:00
|
|
|
|
|
|
|
`git fetch origin; git rebase -i origin/master`
|
|
|
|
|
2016-01-21 13:08:45 +01:00
|
|
|
- Handle an active rebase merge failure, after editing conflicting file(s):
|
2015-12-30 18:36:58 +01:00
|
|
|
|
|
|
|
`git rebase --continue`
|
|
|
|
|
2016-01-21 13:08:45 +01:00
|
|
|
- Abort a rebase in-progress:
|
2015-12-30 18:36:58 +01:00
|
|
|
|
|
|
|
`git rebase --abort`
|