From a6efcb6ba846931bcd96a3bec2a3ff193dfd0590 Mon Sep 17 00:00:00 2001 From: Te-Chi Liu Date: Wed, 21 Sep 2016 14:58:28 +0800 Subject: [PATCH] git-rebase: add --onto option (#1080) --- pages/common/git-rebase.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/git-rebase.md b/pages/common/git-rebase.md index 93dd4e687..05eb29a05 100644 --- a/pages/common/git-rebase.md +++ b/pages/common/git-rebase.md @@ -6,7 +6,7 @@ `git rebase -i master` -- Rebase your local branch interactively with the latest changes from upstream: +- Rebase your local branch interactively with the latest changes from upstream: `git fetch origin; git rebase -i origin/master` @@ -17,3 +17,7 @@ - Abort a rebase in-progress: `git rebase --abort` + +- Rebase your local branch by specifying new base commit and old base commit: + +`git rebase --onto {{new_base_commit}} {{old_base_commit}}`