Mercurial > hg > kdocs
comparison local/git-quick.html @ 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 | ae115ea731f2 |
comparison
equal
deleted
inserted
replaced
93:1bd46b3c996d | 94:d3a9753eea24 |
---|---|
71 (before 2.6.12-rc2), that's stored in a seperate repository, | 71 (before 2.6.12-rc2), that's stored in a seperate repository, |
72 "<b>git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git</b>". | 72 "<b>git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git</b>". |
73 (<a href=http://git.kernel.org>Here is a list of all git repositories hosted | 73 (<a href=http://git.kernel.org>Here is a list of all git repositories hosted |
74 on kernel.org</a>.)</p> | 74 on kernel.org</a>.)</p> |
75 | 75 |
76 <p>(If you forget the URL a git repository came from, it's in the file | 76 <p>If you forget the URL a git repository came from, it's in the file |
77 ".git/FETCH_HEAD". Normally you shouldn't need to care, since git remembers | 77 ".git/FETCH_HEAD". Normally you shouldn't need to care, since git remembers |
78 it.)</p> | 78 it.</p> |
79 | |
80 <p>Note that unlike Mercurial, the URLs git uses aren't the same ones you | |
81 find repositories at on the web. You have to translate them. For example, | |
82 the "stable-queue" repository at which bugfix-only patches for fourth level | |
83 dot release of the linux kernel queue up before going in is on the web at | |
84 <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>. | |
85 In this case, the corresponding git repository would be cloned with:</p> | |
86 | |
87 <blockquote> | |
88 <pre>git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git | |
89 </pre> | |
90 </blockquote> | |
91 | |
92 <p>I.E. replace "http://git.kernel.org/?p=" with "git://git.kernel.org/pub/scm/".</p> | |
79 | 93 |
80 <a name="updating"><h2>Updating your local copy</h2> | 94 <a name="updating"><h2>Updating your local copy</h2> |
81 | 95 |
82 <p>The command "<b>git pull</b>" downloads all the changes committed to Linus's | 96 <p>The command "<b>git pull</b>" downloads all the changes committed to Linus's |
83 git repository since the last time you updated your copy, and appends those | 97 git repository since the last time you updated your copy, and appends those |