summaryrefslogtreecommitdiffstats
path: root/git-checkout.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-08-20 09:14:14 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-08-20 09:14:14 +0000
commit5cf43cab94d19dce9d3c883f374e254c7b2572e1 (patch)
tree25eec20f3b813fbff31d880a8b930447541ecaae /git-checkout.html
parent7c2d9ea271ffc94f8b7e907b3ec88c2fdfb462f2 (diff)
downloadgit-htmldocs-5cf43cab94d19dce9d3c883f374e254c7b2572e1.tar.gz
Autogenerated HTML docs for v1.6.0-36-g3814c
Diffstat (limited to 'git-checkout.html')
-rw-r--r--git-checkout.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/git-checkout.html b/git-checkout.html
index f997d75f6..afa2b48a9 100644
--- a/git-checkout.html
+++ b/git-checkout.html
@@ -321,7 +321,7 @@ git-checkout(1) Manual Page
<h2>SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<div class="content"><em>git checkout</em> [-q] [-f] [[--track | --no-track] -b &lt;new_branch&gt; [-l]] [-m] [&lt;branch&gt;]
+<div class="content"><em>git checkout</em> [-q] [-f] [--track | --no-track] [-b &lt;new_branch&gt; [-l]] [-m] [&lt;branch&gt;]
<em>git checkout</em> [&lt;tree-ish&gt;] [--] &lt;paths&gt;&#8230;</div></div>
</div>
<h2 id="_description">DESCRIPTION</h2>
@@ -332,6 +332,9 @@ branch, &lt;branch&gt;, and updating HEAD to be &lt;branch&gt; or, if
specified, &lt;new_branch&gt;. Using -b will cause &lt;new_branch&gt; to
be created; in this case you can use the --track or --no-track
options, which will be passed to <tt>git branch</tt>.</p></div>
+<div class="para"><p>As a convenience, --track will default to create a branch whose
+name is constructed from the specified branch name by stripping
+the first namespace level.</p></div>
<div class="para"><p>When &lt;paths&gt; are given, this command does <strong>not</strong> switch
branches. It updates the named paths in the working tree from
the index file (i.e. it runs <tt>git checkout-index -f -u</tt>), or
@@ -392,6 +395,9 @@ working tree.</p></div>
given. Set it to <tt>always</tt> if you want this behavior when the
start-point is either a local or remote branch.
</p>
+<div class="para"><p>If no <em>-b</em> option was given, a name will be made up for you, by stripping
+the part up to the first slash of the tracked branch. For example, if you
+called <em>git checkout --track origin/next</em>, the branch name will be <em>next</em>.</p></div>
</dd>
<dt>
--no-track
@@ -590,7 +596,7 @@ $ git add frotz</tt></pre>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2008-07-26 06:45:37 UTC
+Last updated 2008-08-20 09:13:27 UTC
</div>
</div>
</body>