Skip to content

Commit dbdd946

Browse files
committed
Note difference on default behaviour on fetch/push on repo tags
1 parent 690a441 commit dbdd946

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

branching/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -774,10 +774,11 @@ <h2>
774774
* 17f4acf first commit
775775
</pre>
776776

777-
<p>By default, tags are not included when you <code>push</code> to or
778-
<code>fetch</code> from a remote repository. In order to explicitly
779-
update these you must include the <code>--tags</code> option to transfer
780-
all the tags on the repo.
777+
<p>Tags pointing to objects tracked from branch heads will be
778+
automatically downloaded when you <code>fetch</code> from a remote
779+
repository. However, tags that aren't reachable from branch heads
780+
will be skipped. If you want to make sure <em>all</em> tags are <em>always</em>
781+
included, you must include the <code>--tags</code> option.
781782
</p>
782783

783784
<pre>
@@ -796,6 +797,11 @@ <h2>
796797
<code>git fetch &lt;remote> tag &lt;tag-name></code>.
797798
</p>
798799

800+
<p>By default, tags are not included when you <code>push</code> to
801+
a remote repository. In order to explicitly update these you must
802+
include the <code>--tags</code> option when using <code>git push</code>.
803+
</p>
804+
799805
<p class="nutshell">
800806
<b>In a nutshell</b> you use <code>git tag</code> to mark a
801807
commit or point in your repo as important. This also allows

0 commit comments

Comments
 (0)