Re: Download Linus's latest git tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I just want to improve om my approch as my preview approch failed with git merger conflict. So I did some reverse engg.
And came up with this approch.

# First clone to the current release.
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux
cd linux

# Added a remote git tree to the .git/config using following command.
git remote add stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

# Merge the tags from the stable tree to current tree
# this will resolve all the conflict and diff and tags
git fetch stable master --tags

# After this you will be able to chose to checkout any stable
# release using particular tags in different branchs.

# checkout the stable release v3.14.4 into stable314y
 branch.
git checkout tags/v3.14.4 -b stable314y

# Simpilarly you can checkout v3.10.40 int stable310y branch
git checkout tags/v3.10.40 -b stable310y

# You local repository will have
git branch --list
  master             --this branch point to mainline: 3.15-rc7   
* stable310y         --this branch point to longterm: 3.10.40
  stable314y         --this branch point to stable: 3.14.4   
  tutorial


# Note but dont use 'git pull' in these sub branchs
# You can switch among these branches.

git checkout stable314y -f
git describe
v3.14.4


git checkout stable310y -f
git describe
v3.10.40


git checkout master -f
git describe
v3.15-rc7-40-gcd79bde

# Note : You can maintain the kernel in the same linux  directory.
# Note you can do 'git reset --hard HEAD' only on the *master branch. 


Please share your thought on this.


-Anand Moon




On Tuesday, May 27, 2014 10:58 PM, "Valdis.Kletnieks@xxxxxx" <Valdis.Kletnieks@xxxxxx> wrote:
On Tue, 27 May 2014 11:28:19 -0500, Victor Rodriguez said:


> Have you try the git archive instead of git clone? , if you do not need the
> history this git option rocks

That has the same problem as 'clone --depth 1' - you can't bisect using
the resulting tree.


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies





[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux