summaryrefslogtreecommitdiffstats
path: root/git-rebase.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-04-04 19:12:02 +0000
committerJunio C Hamano <junio@kernel.org>2010-04-04 19:12:02 +0000
commitef8fbf98cac7f677e6c9c8e123cfb9fcbca6609c (patch)
treedde7f993a60f014ea00468ea3bc73e3c319e24ee /git-rebase.txt
parent1f630d5db345294f4c0a212ac4582064ffc53e6c (diff)
downloadgit-htmldocs-ef8fbf98cac7f677e6c9c8e123cfb9fcbca6609c.tar.gz
Autogenerated HTML docs for v1.7.0.4-360-g1176
Diffstat (limited to 'git-rebase.txt')
-rw-r--r--git-rebase.txt23
1 files changed, 21 insertions, 2 deletions
diff --git a/git-rebase.txt b/git-rebase.txt
index 823f2a463..0d07b1b20 100644
--- a/git-rebase.txt
+++ b/git-rebase.txt
@@ -274,9 +274,16 @@ which makes little sense.
-f::
--force-rebase::
Force the rebase even if the current branch is a descendant
- of the commit you are rebasing onto. Normally the command will
+ of the commit you are rebasing onto. Normally non-interactive rebase will
exit with the message "Current branch is up to date" in such a
situation.
+ Incompatible with the --interactive option.
++
+You may find this (or --no-ff with an interactive rebase) helpful after
+reverting a topic branch merge, as this option recreates the topic branch with
+fresh commits so it can be remerged successfully without needing to "revert
+the reversion" (see the
+link:howto/revert-a-faulty-merge.txt[revert-a-faulty-merge How-To] for details).
--ignore-whitespace::
--whitespace=<option>::
@@ -316,7 +323,19 @@ which makes little sense.
commit to be modified, and change the action of the moved
commit from `pick` to `squash` (or `fixup`).
+
-This option is only valid when '--interactive' option is used.
+This option is only valid when the '--interactive' option is used.
+
+--no-ff::
+ With --interactive, cherry-pick all rebased commits instead of
+ fast-forwarding over the unchanged ones. This ensures that the
+ entire history of the rebased branch is composed of new commits.
++
+Without --interactive, this is a synonym for --force-rebase.
++
+You may find this helpful after reverting a topic branch merge, as this option
+recreates the topic branch with fresh commits so it can be remerged
+successfully without needing to "revert the reversion" (see the
+link:howto/revert-a-faulty-merge.txt[revert-a-faulty-merge How-To] for details).
include::merge-strategies.txt[]