summaryrefslogtreecommitdiffstats
path: root/git-remote.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-07-13 23:51:56 +0000
committerJunio C Hamano <junio@kernel.org>2011-07-13 23:51:56 +0000
commit360e3a1e2a1605a257fceaa3f9a5cd99ce19f0f6 (patch)
treebc06dbf2b7efe1c3cde933f43e6f92fae86e870d /git-remote.html
parentc652aed8923d6b63b98c910666b861a766217891 (diff)
downloadgit-htmldocs-360e3a1e2a1605a257fceaa3f9a5cd99ce19f0f6.tar.gz
Autogenerated HTML docs for v1.7.6-178-g55272
Diffstat (limited to 'git-remote.html')
-rw-r--r--git-remote.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/git-remote.html b/git-remote.html
index 455352774..55f2f3a9f 100644
--- a/git-remote.html
+++ b/git-remote.html
@@ -473,10 +473,10 @@ remote repository.</p></div>
the remote repository.</p></div>
<div class="paragraph"><p>With <tt>-t &lt;branch&gt;</tt> option, instead of the default glob
refspec for the remote to track all branches under
-<tt>$GIT_DIR/remotes/&lt;name&gt;/</tt>, a refspec to track only <tt>&lt;branch&gt;</tt>
+the <tt>refs/remotes/&lt;name&gt;/</tt> namespace, a refspec to track only <tt>&lt;branch&gt;</tt>
is created. You can give more than one <tt>-t &lt;branch&gt;</tt> to track
multiple branches without grabbing all branches.</p></div>
-<div class="paragraph"><p>With <tt>-m &lt;master&gt;</tt> option, <tt>$GIT_DIR/remotes/&lt;name&gt;/HEAD</tt> is set
+<div class="paragraph"><p>With <tt>-m &lt;master&gt;</tt> option, a symbolic-ref <tt>refs/remotes/&lt;name&gt;/HEAD</tt> is set
up to point at remote&#8217;s <tt>&lt;master&gt;</tt> branch. See also the set-head command.</p></div>
<div class="paragraph"><p>When a fetch mirror is created with <tt>--mirror=fetch</tt>, the refs will not
be stored in the <em>refs/remotes/</em> namespace, but rather everything in
@@ -512,22 +512,23 @@ configuration settings for the remote are removed.
</dt>
<dd>
<p>
-Sets or deletes the default branch (<tt>$GIT_DIR/remotes/&lt;name&gt;/HEAD</tt>) for
+Sets or deletes the default branch (i.e. the target of the
+symbolic-ref <tt>refs/remotes/&lt;name&gt;/HEAD</tt>) for
the named remote. Having a default branch for a remote is not required,
but allows the name of the remote to be specified in lieu of a specific
branch. For example, if the default branch for <tt>origin</tt> is set to
<tt>master</tt>, then <tt>origin</tt> may be specified wherever you would normally
specify <tt>origin/master</tt>.
</p>
-<div class="paragraph"><p>With <tt>-d</tt>, <tt>$GIT_DIR/remotes/&lt;name&gt;/HEAD</tt> is deleted.</p></div>
-<div class="paragraph"><p>With <tt>-a</tt>, the remote is queried to determine its <tt>HEAD</tt>, then
-<tt>$GIT_DIR/remotes/&lt;name&gt;/HEAD</tt> is set to the same branch. e.g., if the remote
+<div class="paragraph"><p>With <tt>-d</tt>, the symbolic ref <tt>refs/remotes/&lt;name&gt;/HEAD</tt> is deleted.</p></div>
+<div class="paragraph"><p>With <tt>-a</tt>, the remote is queried to determine its <tt>HEAD</tt>, then the
+symbolic-ref <tt>refs/remotes/&lt;name&gt;/HEAD</tt> is set to the same branch. e.g., if the remote
<tt>HEAD</tt> is pointed at <tt>next</tt>, "<tt>git remote set-head origin -a</tt>" will set
-<tt>$GIT_DIR/refs/remotes/origin/HEAD</tt> to <tt>refs/remotes/origin/next</tt>. This will
+the symbolic-ref <tt>refs/remotes/origin/HEAD</tt> to <tt>refs/remotes/origin/next</tt>. This will
only work if <tt>refs/remotes/origin/next</tt> already exists; if not it must be
fetched first.</p></div>
-<div class="paragraph"><p>Use <tt>&lt;branch&gt;</tt> to set <tt>$GIT_DIR/remotes/&lt;name&gt;/HEAD</tt> explicitly. e.g., "git
-remote set-head origin master" will set <tt>$GIT_DIR/refs/remotes/origin/HEAD</tt> to
+<div class="paragraph"><p>Use <tt>&lt;branch&gt;</tt> to set the symbolic-ref <tt>refs/remotes/&lt;name&gt;/HEAD</tt> explicitly. e.g., "git
+remote set-head origin master" will set the symbolic-ref <tt>refs/remotes/origin/HEAD</tt> to
<tt>refs/remotes/origin/master</tt>. This will only work if
<tt>refs/remotes/origin/master</tt> already exists; if not it must be fetched first.</p></div>
</dd>
@@ -659,7 +660,7 @@ $ git merge origin</tt></pre>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2011-04-06 19:53:11 UTC
+Last updated 2011-07-13 23:50:41 UTC
</div>
</div>
</body>