summaryrefslogtreecommitdiffstats
path: root/git-push.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-26 16:20:56 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-26 16:20:56 -0700
commit3a3357e80cfe1646ce4fc7d834b7cb4ee3e65283 (patch)
tree865a40a2fea0668bf46fd5da7869f79786b9dea4 /git-push.html
parent8ab949466f2182c01fb1955cca8b1bba8d2b431a (diff)
downloadgit-htmldocs-3a3357e80cfe1646ce4fc7d834b7cb4ee3e65283.tar.gz
Autogenerated HTML docs for v1.8.3.1-605-g85318
Diffstat (limited to 'git-push.html')
-rw-r--r--git-push.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/git-push.html b/git-push.html
index 5df581872..4a7680ac2 100644
--- a/git-push.html
+++ b/git-push.html
@@ -934,6 +934,15 @@ already exists on the remote side.</p></div>
not an ancestor of the local ref used to overwrite it.
This flag disables the check. This can cause the
remote repository to lose commits; use it with care.
+ Note that <code>--force</code> applies to all the refs that are pushed,
+ hence using it with <code>push.default</code> set to <code>matching</code> or with
+ multiple push destinations configured with <code>remote.*.push</code>
+ may overwrite refs other than the current branch (including
+ local refs that are strictly behind their remote counterpart).
+ To force a push to only one branch, use a <code>+</code> in front of the
+ refspec to push (e.g <code>git push origin +master</code> to force a push
+ to the <code>master</code> branch). See the <code>&lt;refspec&gt;...</code> section above
+ for details.
</p>
</dd>
<dt class="hdlist1">
@@ -1657,7 +1666,7 @@ a <code>git gc</code> command on the origin repository.</p></div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2013-06-05 15:57:43 PDT
+Last updated 2013-06-26 16:20:17 PDT
</div>
</div>
</body>