summaryrefslogtreecommitdiffstats
path: root/linux-next.html
blob: c92ed1a30316f80aac157fe7f6dc09ace78b9d08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel=stylesheet type="text/css" href="style.css" title="style">
<title>
Working with linux-next
</title>
</head>

<body>

<!--BEGIN-LINKS-->
<form method="get" action="https://www.google.com/search">
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
<td align="left">
<font size="-1">

Linux <em>man-pages</em>: &nbsp;
<a href="./index.html">home</a> | 
<a href="https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING">contributing</a> | 
<a href="./download.html">download</a>
&nbsp; || &nbsp; 
<a href="https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git">git</a> |
<a href="https://man7.org/linux/man-pages/index.html">online pages</a></font>
</td>
<td align="right">
<input type="text" name="q" size=10 maxlength=255 value="">
<input type="hidden" name="sitesearch" value="man7.org/linux/man-pages">
<input type="submit" name="sa" value="Search online pages">
</td>
</tr>
</table>
</form>
<!--END-LINKS-->


<h1>Working with linux-next</h1>

<p>
    The <a href="https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git"><em>linux-next</em> tree</a>
    is the holding area for patches aimed at the next kernel merge window.
    If you're doing bleeding edge kernel development,
    you may want to work from that tree rather than Linus Torvalds'
    mainline tree.
</p>

<h2>Initial set up</h2>
<p>
    If you haven't already done so,
    first clone a copy of the
    <a href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git">mainline Linux Git repository</a>:
</p>
<pre>    $ <strong>git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git</strong>
          # or: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
    Cloning into 'linux'...
    ...</pre>
    
<p>
    Then add a remote tracking branch for <em>linux-next</em>:
</p>
<pre>    $ <strong>cd linux</strong>
    $ <strong>git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git</strong>
                          # or: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
</pre>
    
<p>
    Fetch <em>linux-next</em> plus tags    
</p>
<pre>    $ <strong>git fetch linux-next</strong>
    ...
    $ <strong>git fetch --tags linux-next</strong>
    ...</pre>

<h2>Regular tracking</h2>

<p>
    Update <em>linux-next</em>:
</p>
<pre>    $ <strong>git checkout master</strong>      # to be safe
    ...
    $ <strong>git remote update</strong>
    ...</pre>

<p>
    List (recent) <em>linux-next</em> tags:
</p>

<pre>    $ <strong>git tag -l "next-*" | tail</strong>
    next-20140612
    next-20140613
    next-20140616
    next-20140617
    next-20140618
    next-20140619
    next-20140620
    next-20140623
    next-20140624
    next-20140625 </pre>

<p>
    Choose the <em>linux-next</em> version that you will work from,
    and create a local branch based on that version:
</p>
<pre>    $ <strong>git checkout -b my_local_branch next-20140625</strong>
    Switched to a new branch 'my_local_branch'</pre>

<!--BEGIN-STATCOUNTER-->
<!-- SITETRACKING.linux_man-pages -->
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=5618989;
var sc_invisible=1;
var sc_partition=60;
var sc_click_stat=1;
var sc_security="4f8507d7";
</script>

<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"></script><noscript><div
class="statcounter"><a title="customisable counter"
href="https://www.statcounter.com/free_hit_counter.html"
target="_blank"><img class="statcounter"
src="https://c.statcounter.com/5618989/0/4f8507d7/1/" alt="customisable
counter" ></a></div></noscript>
<!-- End of StatCounter Code -->
<!--END-STATCOUNTER-->
</body>
</html>