<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-clone.txt, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-02-01T21:53:33Z</updated>
<entry>
<title>Documentation: the name of the system is 'Git', not 'git'</title>
<updated>2013-02-01T21:53:33Z</updated>
<author>
<name>Thomas Ackermann</name>
<email>th.acker@arcor.de</email>
</author>
<published>2013-01-21T19:17:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2de9b71138171dca7279db3b3fe67e868c76d921'/>
<id>urn:sha1:2de9b71138171dca7279db3b3fe67e868c76d921</id>
<content type='text'>
Signed-off-by: Thomas Ackermann &lt;th.acker@arcor.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: avoid poor-man's small caps GIT</title>
<updated>2013-02-01T21:53:25Z</updated>
<author>
<name>Thomas Ackermann</name>
<email>th.acker@arcor.de</email>
</author>
<published>2013-01-21T19:16:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=48a8c26c625a4d3631c4f614bceb38933e741408'/>
<id>urn:sha1:48a8c26c625a4d3631c4f614bceb38933e741408</id>
<content type='text'>
In the earlier days, we used to spell the name of the system as GIT,
to simulate as if it were typeset with capital G and IT in small
caps.  Later we stopped doing so at around 1.6.5 days.

Let's stop doing so throughout the documentation.  The name to refer
to the whole system (and the concept it embodies) is "Git"; the
command end-users type is "git".  And document this in the coding
guideline.

Signed-off-by: Thomas Ackermann &lt;th.acker@arcor.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: remote tracking branch -&gt; remote-tracking branch</title>
<updated>2012-10-25T10:55:46Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-10-23T11:34:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6d3bde5afc5d742af0d7b1f2725b760dca165cb'/>
<id>urn:sha1:a6d3bde5afc5d742af0d7b1f2725b760dca165cb</id>
<content type='text'>
This change was already done by 0e615b252f3 (Matthieu Moy, Tue Nov 2
2010, Replace "remote tracking" with "remote-tracking"), but new
instances of remote tracking (without dash) were introduced in the
meantime.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rt/maint-clone-single' into maint</title>
<updated>2012-10-08T18:34:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-10-08T18:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9b4030cd98c7fa564905979d075aaf1312de8567'/>
<id>urn:sha1:9b4030cd98c7fa564905979d075aaf1312de8567</id>
<content type='text'>
A repository created with "git clone --single" had its fetch
refspecs set up just like a clone without "--single", leading the
subsequent "git fetch" to slurp all the other branches, defeating
the whole point of specifying "only this branch".

* rt/maint-clone-single:
  clone --single: limit the fetch refspec to fetched branch
</content>
</entry>
<entry>
<title>clone --single: limit the fetch refspec to fetched branch</title>
<updated>2012-09-20T21:15:35Z</updated>
<author>
<name>Ralf Thielow</name>
<email>ralf.thielow@gmail.com</email>
</author>
<published>2012-09-20T18:04:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31b808a03290a4f87c571cc1c61f26d8a03c7025'/>
<id>urn:sha1:31b808a03290a4f87c571cc1c61f26d8a03c7025</id>
<content type='text'>
After running "git clone --single", the resulting repository has the
usual default "+refs/heads/*:refs/remotes/origin/*" wildcard fetch
refspec installed, which means that a subsequent "git fetch" will
end up grabbing all the other branches.

Update the fetch refspec to cover only the singly cloned ref instead
to correct this.

That means:
If "--single" is used without "--branch" or "--mirror", the
fetch refspec covers the branch on which remote's HEAD points to.
If "--single" is used with "--branch", it'll cover only the branch
specified in the "--branch" option.
If "--single" is combined with "--mirror", then it'll cover all
refs of the cloned repository.
If "--single" is used with "--branch" that specifies a tag, then
it'll cover only the ref for this tag.

Signed-off-by: Ralf Thielow &lt;ralf.thielow@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: allow --no-local to turn off local optimizations</title>
<updated>2012-05-30T16:51:22Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-05-30T11:10:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=189260b190be845f0e24ede93f9ac539627d72fa'/>
<id>urn:sha1:189260b190be845f0e24ede93f9ac539627d72fa</id>
<content type='text'>
This is basically the same as using "file://", but is a
little less subtle for the end user. It also allows relative
paths to be specified.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>docs/clone: mention that --local may be ignored</title>
<updated>2012-05-30T16:51:14Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-05-30T11:09:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9197a10c7188a74356384a7ce46e05104ac68240'/>
<id>urn:sha1:9197a10c7188a74356384a7ce46e05104ac68240</id>
<content type='text'>
The --local flag is not "treat this like a local
repository", but rather "if we are local, turn on
optimizations". Therefore it does nothing in the case of:

  git clone --local file:///path/to/repo

Let's make that more clear in the documentation.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: allow --branch to take a tag</title>
<updated>2012-01-17T00:26:26Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-01-16T09:46:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5a7d5b683f869d3e3884a89775241afa515da9e7'/>
<id>urn:sha1:5a7d5b683f869d3e3884a89775241afa515da9e7</id>
<content type='text'>
Because a tag ref cannot be put to HEAD, HEAD will become detached.
This is consistent with "git checkout &lt;tag&gt;".

This is mostly useful in shallow clone, where it allows you to clone a
tag in addtion to branches.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: add --single-branch to fetch only one branch</title>
<updated>2012-01-08T21:48:27Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-01-07T14:45:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e6e0edde20f536b28cf1dac04c7376000bfc701'/>
<id>urn:sha1:3e6e0edde20f536b28cf1dac04c7376000bfc701</id>
<content type='text'>
When --single-branch is given, only one branch, either HEAD or one
specified by --branch, will be fetched. Also only tags that point to
the downloaded history are fetched.

This helps most in shallow clones, where it can reduce the download to
minimum and that is why it is enabled by default when --depth is given.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>clone: accept config options on the command line</title>
<updated>2011-06-22T18:25:21Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-06-09T20:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=84054f79de35015fc92f73ec4780102dd820e452'/>
<id>urn:sha1:84054f79de35015fc92f73ec4780102dd820e452</id>
<content type='text'>
Clone does all of init, "remote add", fetch, and checkout
without giving the user a chance to intervene and set any
configuration. This patch allows you to set config options
in the newly created repository after the clone, but before
we do any other operations.

In many cases, this is a minor convenience over something
like:

  git clone git://...
  git config core.whatever true

But in some cases, it can bring extra efficiency by changing
how the fetch or checkout work. For example, setting
line-ending config before the checkout avoids having to
re-checkout all of the contents with the correct line
endings.

It also provides a mechanism for passing information to remote
helpers during a clone; the helpers may read the git config
to influence how they operate.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
