LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-01-2011, 10:30 PM   #1
qweasd
Member
 
Registered: May 2010
Posts: 621

Rep: Reputation: Disabled
Best way to git the kernel?


Hi! I want to stay on top of the latest stable kernel. So I run
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.??.y.git

to get a new major version and
git pull

to update to a minor version. Is there a way to update to a major version without cloning everything?
 
Old 04-22-2011, 12:41 PM   #2
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
There's no limit on how many repos your working repo talks to, so just
Code:
git remote add 2.6.38.stable   git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.38.y.git
git remote update
git checkout -b 2.6.38 2.6.38.stable/master
will add a 2.6.38 branch tracking that stable repo. git takes care of the rest.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
git downgrades my kernel lk.atwork Linux - General 0 06-30-2008 02:47 PM
LXer: Linux: Using Git With the -mm Kernel LXer Syndicated Linux News 0 01-12-2006 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration