mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
user-manual: give 'git push -f' as an alternative to +master
This mirrors existing language in the description of 'git fetch'. Signed-off-by: W. Trevor King <wking@tremily.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e9b4908302
commit
d1471e0616
|
@ -2045,6 +2045,13 @@ branch name with a plus sign:
|
|||
$ git push ssh://yourserver.com/~you/proj.git +master
|
||||
-------------------------------------------------
|
||||
|
||||
Note the addition of the `+` sign. Alternatively, you can use the
|
||||
`-f` flag to force the remote update, as in:
|
||||
|
||||
-------------------------------------------------
|
||||
$ git push -f ssh://yourserver.com/~you/proj.git master
|
||||
-------------------------------------------------
|
||||
|
||||
Normally whenever a branch head in a public repository is modified, it
|
||||
is modified to point to a descendant of the commit that it pointed to
|
||||
before. By forcing a push in this situation, you break that convention.
|
||||
|
|
Loading…
Reference in a new issue