Skip to content

Commit e7867e8

Browse files
committed
Merge branch 'so/rebase-doc' into maint
* so/rebase-doc: Documentation/git-rebase.txt: <upstream> must be given to specify <branch> Documentation/git-rebase.txt: -f forces a rebase that would otherwise be a no-op
2 parents 62b553c + 95c6826 commit e7867e8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Documentation/git-rebase.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'git rebase' [-i | --interactive] [options] [--exec <cmd>] [--onto <newbase>]
12-
[<upstream>] [<branch>]
12+
[<upstream> [<branch>]]
1313
'git rebase' [-i | --interactive] [options] [--exec <cmd>] [--onto <newbase>]
1414
--root [<branch>]
1515
'git rebase' --continue | --skip | --abort | --edit-todo
@@ -316,11 +316,8 @@ which makes little sense.
316316

317317
-f::
318318
--force-rebase::
319-
Force the rebase even if the current branch is a descendant
320-
of the commit you are rebasing onto. Normally non-interactive rebase will
321-
exit with the message "Current branch is up to date" in such a
322-
situation.
323-
Incompatible with the --interactive option.
319+
Force a rebase even if the current branch is up-to-date and
320+
the command without `--force` would return without doing anything.
324321
+
325322
You may find this (or --no-ff with an interactive rebase) helpful after
326323
reverting a topic branch merge, as this option recreates the topic branch with

0 commit comments

Comments
 (0)