Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Description
Implicit option name
See this portion of text foundhere:
$ git rebase -f upstream/master$ git push -f origin BRANCH_NAME
when doing a push --force, always specify the branch name explicitly to avoid messing other branches in the repo (--force tells Git that you really want to mess with things so do it carefully).
Advanced users may know that-f
is equivalent to--force
, but this is not clear for users unaware of this shortcut to the--force
command.
Missing reference
See this sentence foundhere:
$ git rebase -i upstream/master$ git push -f origin BRANCH_NAME
The number 3 here must equal the amount of commits in your branch. [...]
The start of the sentence makes a reference about a number which is not present is the 2 command lines above. The number was present in2.2 version:
$ git rebase -i HEAD~3$ git push -f origin BRANCH_NAME
The number 3 here must equal the amount of commits in your branch. [...]
Since I don't know if the change fromHEAD~3
(in 2.2) toupstream/master
(in 2.3) is correct, I won't make a pull request.
Broken paragraph (already fixed in#3455)
Just look at the end ofthe page, the text afterjust is in a separated block. It was ok in2.2 version.
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | 2.3+ |
Fixed tickets | - |