Mercurial > hg > kdocs
changeset 94:d3a9753eea24
A note about web URLs vs git URLs, and note the "stable-queue" repository
as an example.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 15 Nov 2007 16:27:45 -0600 |
parents | 1bd46b3c996d |
children | a96c14daa4c7 |
files | local/git-quick.html |
diffstat | 1 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/local/git-quick.html Sat Nov 10 19:54:09 2007 -0500 +++ b/local/git-quick.html Thu Nov 15 16:27:45 2007 -0600 @@ -73,9 +73,23 @@ (<a href=http://git.kernel.org>Here is a list of all git repositories hosted on kernel.org</a>.)</p> -<p>(If you forget the URL a git repository came from, it's in the file +<p>If you forget the URL a git repository came from, it's in the file ".git/FETCH_HEAD". Normally you shouldn't need to care, since git remembers -it.)</p> +it.</p> + +<p>Note that unlike Mercurial, the URLs git uses aren't the same ones you +find repositories at on the web. You have to translate them. For example, +the "stable-queue" repository at which bugfix-only patches for fourth level +dot release of the linux kernel queue up before going in is on the web at +<a href="http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git">http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git</a>. +In this case, the corresponding git repository would be cloned with:</p> + +<blockquote> +<pre>git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git +</pre> +</blockquote> + +<p>I.E. replace "http://git.kernel.org/?p=" with "git://git.kernel.org/pub/scm/".</p> <a name="updating"><h2>Updating your local copy</h2>