GitTheSource

Differences between revisions 5 and 6
Revision 5 as of 2010-06-21 08:26:26
Size: 166
Editor: 85-210-146-14
Comment:
Revision 6 as of 2010-06-21 08:34:44
Size: 1121
Editor: 85-210-146-14
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
** under construction * All of the Ubuntu Kernel source is maintained under {{{git}}}. The source for each release is maintained in its own git repository on {{{kernel.ubuntu.com}}}. These can be browsed in [[http://kernel.ubuntu.com/git|gitweb]], the official Ubuntu trees are in the {{{ubuntu/}}} directory. To obtain a local copy you can simply git clone the repository for the release you are interested in as below. The {{{git}}} command is part of the {{{git-core}}} package:
Line 5: Line 5:
{{{
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git
    {{{
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-<release>.git
Line 8: Line 8:

For example to obtain the maverick tree:

    {{{
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git
}}}

This will download some 300MB of data. If you have a virgin Linus tree locally you can significantly reduce the size of this download through object sharing. Note that once these two trees are tied together you cannot remove the virgin Linus tree without damage to the Ubuntu tree:

    {{{
git clone --reference linux-2.6 git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git
}}}

Obtaining the kernel sources for an Ubuntu release using git

All of the Ubuntu Kernel source is maintained under git. The source for each release is maintained in its own git repository on kernel.ubuntu.com. These can be browsed in gitweb, the official Ubuntu trees are in the ubuntu/ directory. To obtain a local copy you can simply git clone the repository for the release you are interested in as below. The git command is part of the git-core package:

  • git clone git://kernel.ubuntu.com/ubuntu/ubuntu-<release>.git

For example to obtain the maverick tree:

  • git clone git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git

This will download some 300MB of data. If you have a virgin Linus tree locally you can significantly reduce the size of this download through object sharing. Note that once these two trees are tied together you cannot remove the virgin Linus tree without damage to the Ubuntu tree:

  • git clone --reference linux-2.6 git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git

Kernel/Action/GitTheSource (last edited 2024-01-23 08:28:28 by anthonywong)