Question about pullsing source of a specific version using git
Hi All, Apologies if this question should not have been asked here. I am looking at pulling code using git (git clone git://some path). This path is same on www.kernel.org for any two close versions say 3.2.9 and 3.2.6 - git:// git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git How do I make my local copy same as the source code for 3.2.6 or 3.2.9 ? I have tried reading git tutorials not in full to find an answer and I am un successful so far. If it's a simple answer could you please let me know. Thanks, SADA
On Fri, Mar 9, 2012 at 12:04 PM, SADA SIVA REDDY S <sadasiva.reddy@gmail.com> wrote:
Hi All, Apologies if this question should not have been asked here. I am looking at pulling code using git (git clone git://some path). This path is same on www.kernel.org for any two close versions say 3.2.9 and 3.2.6 - git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
How do I make my local copy same as the source code for 3.2.6 or 3.2.9 ? I have tried reading git tutorials not in full to find an answer and I am un successful so far.
You can use 'git tag' to list all the tags and, once you know which tag you want, do a 'git checkout v3.2'. Hope this helps, Vlad
On Fri, Mar 09, 2012 at 10:04:17AM +0000, SADA SIVA REDDY S wrote:
Hi All, Apologies if this question should not have been asked here. I am looking at pulling code using git (git clone git://some path). This path is same on www.kernel.org for any two close versions say 3.2.9 and 3.2.6 - git://git.kernel.org/pub/scm/linux/kernel/git/stable/ linux-stable.git
How do I make my local copy same as the source code for 3.2.6 or 3.2.9 ? I have tried reading git tutorials not in full to find an answer and I am un successful so far.
If it's a simple answer could you please let me know.
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git cd linux-stable git checkout v3.2.6
participants (3)
-
Greg KH -
SADA SIVA REDDY S -
Vlad Dogaru