blob: 10adb547ca77d04c0ca43b4b01f36e2af0b6b841 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4<head>
Junio C Hamano9d971152012-12-19 00:43:115<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
6<meta name="generator" content="AsciiDoc 8.6.8" />
Junio C Hamano97bcb482010-11-25 03:16:077<title>git-branch(1)</title>
Junio C Hamano1a4e8412005-12-27 08:17:238<style type="text/css">
Junio C Hamano9d971152012-12-19 00:43:119/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
10
11/* Default font. */
12body {
13 font-family: Georgia,serif;
14}
15
16/* Title font. */
17h1, h2, h3, h4, h5, h6,
18div.title, caption.title,
19thead, p.table.header,
20#toctitle,
21#author, #revnumber, #revdate, #revremark,
22#footer {
23 font-family: Arial,Helvetica,sans-serif;
Junio C Hamano1a4e8412005-12-27 08:17:2324}
25
26body {
27 margin: 1em 5% 1em 5%;
28}
29
Junio C Hamanoba4b9282008-07-06 05:20:3130a {
31 color: blue;
32 text-decoration: underline;
33}
34a:visited {
35 color: fuchsia;
36}
Junio C Hamano1a4e8412005-12-27 08:17:2337
38em {
39 font-style: italic;
Junio C Hamano97bcb482010-11-25 03:16:0740 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:2341}
42
43strong {
44 font-weight: bold;
Junio C Hamano97bcb482010-11-25 03:16:0745 color: #083194;
Junio C Hamano1a4e8412005-12-27 08:17:2346}
47
Junio C Hamano1a4e8412005-12-27 08:17:2348h1, h2, h3, h4, h5, h6 {
49 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:2350 margin-top: 1.2em;
51 margin-bottom: 0.5em;
52 line-height: 1.3;
53}
54
Junio C Hamanoba4b9282008-07-06 05:20:3155h1, h2, h3 {
Junio C Hamano1a4e8412005-12-27 08:17:2356 border-bottom: 2px solid silver;
57}
58h2 {
Junio C Hamano1a4e8412005-12-27 08:17:2359 padding-top: 0.5em;
60}
Junio C Hamanoba4b9282008-07-06 05:20:3161h3 {
62 float: left;
63}
64h3 + * {
65 clear: left;
66}
Junio C Hamano9d971152012-12-19 00:43:1167h5 {
68 font-size: 1.0em;
69}
Junio C Hamano1a4e8412005-12-27 08:17:2370
71div.sectionbody {
Junio C Hamano1a4e8412005-12-27 08:17:2372 margin-left: 0;
73}
74
75hr {
76 border: 1px solid silver;
77}
78
79p {
80 margin-top: 0.5em;
81 margin-bottom: 0.5em;
82}
83
Junio C Hamano97bcb482010-11-25 03:16:0784ul, ol, li > p {
85 margin-top: 0;
86}
Junio C Hamano9d971152012-12-19 00:43:1187ul > li { color: #aaa; }
88ul > li > * { color: black; }
Junio C Hamano97bcb482010-11-25 03:16:0789
Junio C Hamano9d971152012-12-19 00:43:1190.monospaced, code, pre {
91 font-family: "Courier New", Courier, monospace;
92 font-size: inherit;
93 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:2394 padding: 0;
95 margin: 0;
96}
97
Junio C Hamano9d971152012-12-19 00:43:1198
99#author {
Junio C Hamano1a4e8412005-12-27 08:17:23100 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23101 font-weight: bold;
Junio C Hamanoba4b9282008-07-06 05:20:31102 font-size: 1.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23103}
Junio C Hamano9d971152012-12-19 00:43:11104#email {
Junio C Hamano1a4e8412005-12-27 08:17:23105}
Junio C Hamano9d971152012-12-19 00:43:11106#revnumber, #revdate, #revremark {
Junio C Hamano1a4e8412005-12-27 08:17:23107}
108
Junio C Hamano9d971152012-12-19 00:43:11109#footer {
Junio C Hamano1a4e8412005-12-27 08:17:23110 font-size: small;
111 border-top: 2px solid silver;
112 padding-top: 0.5em;
113 margin-top: 4.0em;
114}
Junio C Hamano9d971152012-12-19 00:43:11115#footer-text {
Junio C Hamano1a4e8412005-12-27 08:17:23116 float: left;
117 padding-bottom: 0.5em;
118}
Junio C Hamano9d971152012-12-19 00:43:11119#footer-badges {
Junio C Hamano1a4e8412005-12-27 08:17:23120 float: right;
121 padding-bottom: 0.5em;
122}
123
Junio C Hamano9d971152012-12-19 00:43:11124#preamble {
Junio C Hamano97bcb482010-11-25 03:16:07125 margin-top: 1.5em;
126 margin-bottom: 1.5em;
127}
Junio C Hamano9d971152012-12-19 00:43:11128div.imageblock, div.exampleblock, div.verseblock,
Junio C Hamano1a4e8412005-12-27 08:17:23129div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
130div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22131 margin-top: 1.0em;
Junio C Hamano1a4e8412005-12-27 08:17:23132 margin-bottom: 1.5em;
133}
134div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22135 margin-top: 2.0em;
136 margin-bottom: 2.0em;
137 margin-right: 10%;
138 color: #606060;
Junio C Hamano1a4e8412005-12-27 08:17:23139}
140
141div.content { /* Block element content. */
142 padding: 0;
143}
144
145/* Block element titles. */
146div.title, caption.title {
Junio C Hamano97bcb482010-11-25 03:16:07147 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23148 font-weight: bold;
149 text-align: left;
150 margin-top: 1.0em;
151 margin-bottom: 0.5em;
152}
153div.title + * {
154 margin-top: 0;
155}
156
157td div.title:first-child {
158 margin-top: 0.0em;
159}
160div.content div.title:first-child {
161 margin-top: 0.0em;
162}
163div.content + div.title {
164 margin-top: 0.0em;
165}
166
167div.sidebarblock > div.content {
168 background: #ffffee;
Junio C Hamano9d971152012-12-19 00:43:11169 border: 1px solid #dddddd;
170 border-left: 4px solid #f0f0f0;
Junio C Hamano1a4e8412005-12-27 08:17:23171 padding: 0.5em;
172}
173
174div.listingblock > div.content {
Junio C Hamano9d971152012-12-19 00:43:11175 border: 1px solid #dddddd;
176 border-left: 5px solid #f0f0f0;
177 background: #f8f8f8;
Junio C Hamano1a4e8412005-12-27 08:17:23178 padding: 0.5em;
179}
180
Junio C Hamano7bd050f2011-09-22 06:32:22181div.quoteblock, div.verseblock {
182 padding-left: 1.0em;
183 margin-left: 1.0em;
Junio C Hamano97bcb482010-11-25 03:16:07184 margin-right: 10%;
Junio C Hamano9d971152012-12-19 00:43:11185 border-left: 5px solid #f0f0f0;
186 color: #888;
Junio C Hamano1a4e8412005-12-27 08:17:23187}
Junio C Hamano7bd050f2011-09-22 06:32:22188
Junio C Hamano97bcb482010-11-25 03:16:07189div.quoteblock > div.attribution {
190 padding-top: 0.5em;
Junio C Hamano1a4e8412005-12-27 08:17:23191 text-align: right;
192}
Junio C Hamano97bcb482010-11-25 03:16:07193
Junio C Hamano9d971152012-12-19 00:43:11194div.verseblock > pre.content {
195 font-family: inherit;
196 font-size: inherit;
Junio C Hamano97bcb482010-11-25 03:16:07197}
198div.verseblock > div.attribution {
199 padding-top: 0.75em;
200 text-align: left;
201}
202/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
Junio C Hamanoba4b9282008-07-06 05:20:31203div.verseblock + div.attribution {
204 text-align: left;
205}
Junio C Hamano1a4e8412005-12-27 08:17:23206
207div.admonitionblock .icon {
208 vertical-align: top;
209 font-size: 1.1em;
210 font-weight: bold;
211 text-decoration: underline;
212 color: #527bbd;
213 padding-right: 0.5em;
214}
215div.admonitionblock td.content {
216 padding-left: 0.5em;
Junio C Hamano7bd050f2011-09-22 06:32:22217 border-left: 3px solid #dddddd;
Junio C Hamano1a4e8412005-12-27 08:17:23218}
219
220div.exampleblock > div.content {
Junio C Hamano7bd050f2011-09-22 06:32:22221 border-left: 3px solid #dddddd;
222 padding-left: 0.5em;
Junio C Hamano1a4e8412005-12-27 08:17:23223}
224
Junio C Hamano1a4e8412005-12-27 08:17:23225div.imageblock div.content { padding-left: 0; }
Junio C Hamano1a4e8412005-12-27 08:17:23226span.image img { border-style: none; }
Junio C Hamano97bcb482010-11-25 03:16:07227a.image:visited { color: white; }
Junio C Hamano1a4e8412005-12-27 08:17:23228
229dl {
230 margin-top: 0.8em;
231 margin-bottom: 0.8em;
232}
233dt {
234 margin-top: 0.5em;
235 margin-bottom: 0;
Junio C Hamano97bcb482010-11-25 03:16:07236 font-style: normal;
237 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23238}
239dd > *:first-child {
Junio C Hamano97bcb482010-11-25 03:16:07240 margin-top: 0.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23241}
242
243ul, ol {
244 list-style-position: outside;
245}
Junio C Hamano97bcb482010-11-25 03:16:07246ol.arabic {
247 list-style-type: decimal;
248}
249ol.loweralpha {
Junio C Hamano1a4e8412005-12-27 08:17:23250 list-style-type: lower-alpha;
251}
Junio C Hamano97bcb482010-11-25 03:16:07252ol.upperalpha {
253 list-style-type: upper-alpha;
254}
255ol.lowerroman {
256 list-style-type: lower-roman;
257}
258ol.upperroman {
259 list-style-type: upper-roman;
260}
261
262div.compact ul, div.compact ol,
263div.compact p, div.compact p,
264div.compact div, div.compact div {
265 margin-top: 0.1em;
266 margin-bottom: 0.1em;
267}
Junio C Hamano1a4e8412005-12-27 08:17:23268
Junio C Hamano1a4e8412005-12-27 08:17:23269tfoot {
270 font-weight: bold;
271}
Junio C Hamano97bcb482010-11-25 03:16:07272td > div.verse {
273 white-space: pre;
274}
Junio C Hamano97bcb482010-11-25 03:16:07275
276div.hdlist {
Junio C Hamano1a4e8412005-12-27 08:17:23277 margin-top: 0.8em;
278 margin-bottom: 0.8em;
279}
Junio C Hamano97bcb482010-11-25 03:16:07280div.hdlist tr {
281 padding-bottom: 15px;
Junio C Hamanoba4b9282008-07-06 05:20:31282}
Junio C Hamano97bcb482010-11-25 03:16:07283dt.hdlist1.strong, td.hdlist1.strong {
284 font-weight: bold;
285}
286td.hdlist1 {
Junio C Hamano1a4e8412005-12-27 08:17:23287 vertical-align: top;
Junio C Hamano97bcb482010-11-25 03:16:07288 font-style: normal;
Junio C Hamano1a4e8412005-12-27 08:17:23289 padding-right: 0.8em;
Junio C Hamano97bcb482010-11-25 03:16:07290 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23291}
Junio C Hamano97bcb482010-11-25 03:16:07292td.hdlist2 {
Junio C Hamano1a4e8412005-12-27 08:17:23293 vertical-align: top;
294}
Junio C Hamano97bcb482010-11-25 03:16:07295div.hdlist.compact tr {
296 margin: 0;
297 padding-bottom: 0;
298}
299
300.comment {
301 background: yellow;
302}
Junio C Hamano1a4e8412005-12-27 08:17:23303
Junio C Hamano7bd050f2011-09-22 06:32:22304.footnote, .footnoteref {
305 font-size: 0.8em;
306}
307
308span.footnote, span.footnoteref {
309 vertical-align: super;
310}
311
312#footnotes {
313 margin: 20px 0 20px 0;
314 padding: 7px 0 0 0;
315}
316
317#footnotes div.footnote {
318 margin: 0 0 5px 0;
319}
320
321#footnotes hr {
322 border: none;
323 border-top: 1px solid silver;
324 height: 1px;
325 text-align: left;
326 margin-left: 0;
327 width: 20%;
328 min-width: 100px;
329}
330
Junio C Hamano9d971152012-12-19 00:43:11331div.colist td {
332 padding-right: 0.5em;
333 padding-bottom: 0.3em;
334 vertical-align: top;
335}
336div.colist td img {
337 margin-top: 0.3em;
Junio C Hamano1a4e8412005-12-27 08:17:23338}
Junio C Hamanoba4b9282008-07-06 05:20:31339
Junio C Hamano9d971152012-12-19 00:43:11340@media print {
341 #footer-badges { display: none; }
342}
343
344#toc {
Junio C Hamano7bd050f2011-09-22 06:32:22345 margin-bottom: 2.5em;
346}
347
Junio C Hamano9d971152012-12-19 00:43:11348#toctitle {
Junio C Hamanoba4b9282008-07-06 05:20:31349 color: #527bbd;
Junio C Hamanoba4b9282008-07-06 05:20:31350 font-size: 1.1em;
351 font-weight: bold;
352 margin-top: 1.0em;
353 margin-bottom: 0.1em;
354}
355
Junio C Hamano9d971152012-12-19 00:43:11356div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
Junio C Hamanoba4b9282008-07-06 05:20:31357 margin-top: 0;
358 margin-bottom: 0;
359}
360div.toclevel2 {
361 margin-left: 2em;
362 font-size: 0.9em;
363}
364div.toclevel3 {
365 margin-left: 4em;
366 font-size: 0.9em;
367}
368div.toclevel4 {
369 margin-left: 6em;
370 font-size: 0.9em;
371}
Junio C Hamano9d971152012-12-19 00:43:11372
373span.aqua { color: aqua; }
374span.black { color: black; }
375span.blue { color: blue; }
376span.fuchsia { color: fuchsia; }
377span.gray { color: gray; }
378span.green { color: green; }
379span.lime { color: lime; }
380span.maroon { color: maroon; }
381span.navy { color: navy; }
382span.olive { color: olive; }
383span.purple { color: purple; }
384span.red { color: red; }
385span.silver { color: silver; }
386span.teal { color: teal; }
387span.white { color: white; }
388span.yellow { color: yellow; }
389
390span.aqua-background { background: aqua; }
391span.black-background { background: black; }
392span.blue-background { background: blue; }
393span.fuchsia-background { background: fuchsia; }
394span.gray-background { background: gray; }
395span.green-background { background: green; }
396span.lime-background { background: lime; }
397span.maroon-background { background: maroon; }
398span.navy-background { background: navy; }
399span.olive-background { background: olive; }
400span.purple-background { background: purple; }
401span.red-background { background: red; }
402span.silver-background { background: silver; }
403span.teal-background { background: teal; }
404span.white-background { background: white; }
405span.yellow-background { background: yellow; }
406
407span.big { font-size: 2em; }
408span.small { font-size: 0.6em; }
409
410span.underline { text-decoration: underline; }
411span.overline { text-decoration: overline; }
412span.line-through { text-decoration: line-through; }
413
414div.unbreakable { page-break-inside: avoid; }
415
416
417/*
418 * xhtml11 specific
419 *
420 * */
421
422div.tableblock {
423 margin-top: 1.0em;
424 margin-bottom: 1.5em;
425}
426div.tableblock > table {
427 border: 3px solid #527bbd;
428}
429thead, p.table.header {
430 font-weight: bold;
431 color: #527bbd;
432}
433p.table {
434 margin-top: 0;
435}
436/* Because the table frame attribute is overriden by CSS in most browsers. */
437div.tableblock > table[frame="void"] {
438 border-style: none;
439}
440div.tableblock > table[frame="hsides"] {
441 border-left-style: none;
442 border-right-style: none;
443}
444div.tableblock > table[frame="vsides"] {
445 border-top-style: none;
446 border-bottom-style: none;
447}
448
449
450/*
451 * html5 specific
452 *
453 * */
454
455table.tableblock {
456 margin-top: 1.0em;
457 margin-bottom: 1.5em;
458}
459thead, p.tableblock.header {
460 font-weight: bold;
461 color: #527bbd;
462}
463p.tableblock {
464 margin-top: 0;
465}
466table.tableblock {
467 border-width: 3px;
468 border-spacing: 0px;
469 border-style: solid;
470 border-color: #527bbd;
471 border-collapse: collapse;
472}
473th.tableblock, td.tableblock {
474 border-width: 1px;
475 padding: 4px;
476 border-style: solid;
477 border-color: #527bbd;
478}
479
480table.tableblock.frame-topbot {
481 border-left-style: hidden;
482 border-right-style: hidden;
483}
484table.tableblock.frame-sides {
485 border-top-style: hidden;
486 border-bottom-style: hidden;
487}
488table.tableblock.frame-none {
489 border-style: hidden;
490}
491
492th.tableblock.halign-left, td.tableblock.halign-left {
493 text-align: left;
494}
495th.tableblock.halign-center, td.tableblock.halign-center {
496 text-align: center;
497}
498th.tableblock.halign-right, td.tableblock.halign-right {
499 text-align: right;
500}
501
502th.tableblock.valign-top, td.tableblock.valign-top {
503 vertical-align: top;
504}
505th.tableblock.valign-middle, td.tableblock.valign-middle {
506 vertical-align: middle;
507}
508th.tableblock.valign-bottom, td.tableblock.valign-bottom {
509 vertical-align: bottom;
510}
511
512
513/*
514 * manpage specific
515 *
516 * */
517
518body.manpage h1 {
Junio C Hamano97bcb482010-11-25 03:16:07519 padding-top: 0.5em;
520 padding-bottom: 0.5em;
521 border-top: 2px solid silver;
522 border-bottom: 2px solid silver;
523}
Junio C Hamano9d971152012-12-19 00:43:11524body.manpage h2 {
Junio C Hamano97bcb482010-11-25 03:16:07525 border-style: none;
526}
Junio C Hamano9d971152012-12-19 00:43:11527body.manpage div.sectionbody {
528 margin-left: 3em;
Junio C Hamano97bcb482010-11-25 03:16:07529}
530
531@media print {
Junio C Hamano9d971152012-12-19 00:43:11532 body.manpage div#toc { display: none; }
Junio C Hamano97bcb482010-11-25 03:16:07533}
534
Junio C Hamano1a4e8412005-12-27 08:17:23535
Junio C Hamano1a4e8412005-12-27 08:17:23536</style>
Junio C Hamano7bd050f2011-09-22 06:32:22537<script type="text/javascript">
538/*<![CDATA[*/
Junio C Hamano7bd050f2011-09-22 06:32:22539var asciidoc = { // Namespace.
540
541/////////////////////////////////////////////////////////////////////
542// Table Of Contents generator
543/////////////////////////////////////////////////////////////////////
544
545/* Author: Mihai Bazon, September 2002
546 * http://students.infoiasi.ro/~mishoo
547 *
548 * Table Of Content generator
549 * Version: 0.4
550 *
551 * Feel free to use this script under the terms of the GNU General Public
552 * License, as long as you do not remove or alter this notice.
553 */
554
555 /* modified by Troy D. Hanson, September 2006. License: GPL */
556 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
557
558// toclevels = 1..4.
559toc: function (toclevels) {
560
561 function getText(el) {
562 var text = "";
563 for (var i = el.firstChild; i != null; i = i.nextSibling) {
564 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
565 text += i.data;
566 else if (i.firstChild != null)
567 text += getText(i);
568 }
569 return text;
570 }
571
572 function TocEntry(el, text, toclevel) {
573 this.element = el;
574 this.text = text;
575 this.toclevel = toclevel;
576 }
577
578 function tocEntries(el, toclevels) {
579 var result = new Array;
Junio C Hamano9d971152012-12-19 00:43:11580 var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
Junio C Hamano7bd050f2011-09-22 06:32:22581 // Function that scans the DOM tree for header elements (the DOM2
582 // nodeIterator API would be a better technique but not supported by all
583 // browsers).
584 var iterate = function (el) {
585 for (var i = el.firstChild; i != null; i = i.nextSibling) {
586 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
587 var mo = re.exec(i.tagName);
588 if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
589 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
590 }
591 iterate(i);
592 }
593 }
594 }
595 iterate(el);
596 return result;
597 }
598
599 var toc = document.getElementById("toc");
Junio C Hamano9d971152012-12-19 00:43:11600 if (!toc) {
601 return;
602 }
603
604 // Delete existing TOC entries in case we're reloading the TOC.
605 var tocEntriesToRemove = [];
606 var i;
607 for (i = 0; i < toc.childNodes.length; i++) {
608 var entry = toc.childNodes[i];
609 if (entry.nodeName.toLowerCase() == 'div'
610 && entry.getAttribute("class")
611 && entry.getAttribute("class").match(/^toclevel/))
612 tocEntriesToRemove.push(entry);
613 }
614 for (i = 0; i < tocEntriesToRemove.length; i++) {
615 toc.removeChild(tocEntriesToRemove[i]);
616 }
617
618 // Rebuild TOC entries.
Junio C Hamano7bd050f2011-09-22 06:32:22619 var entries = tocEntries(document.getElementById("content"), toclevels);
620 for (var i = 0; i < entries.length; ++i) {
621 var entry = entries[i];
622 if (entry.element.id == "")
623 entry.element.id = "_toc_" + i;
624 var a = document.createElement("a");
625 a.href = "#" + entry.element.id;
626 a.appendChild(document.createTextNode(entry.text));
627 var div = document.createElement("div");
628 div.appendChild(a);
629 div.className = "toclevel" + entry.toclevel;
630 toc.appendChild(div);
631 }
632 if (entries.length == 0)
633 toc.parentNode.removeChild(toc);
634},
635
636
637/////////////////////////////////////////////////////////////////////
638// Footnotes generator
639/////////////////////////////////////////////////////////////////////
640
641/* Based on footnote generation code from:
642 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
643 */
644
645footnotes: function () {
Junio C Hamano9d971152012-12-19 00:43:11646 // Delete existing footnote entries in case we're reloading the footnodes.
647 var i;
Junio C Hamano7bd050f2011-09-22 06:32:22648 var noteholder = document.getElementById("footnotes");
Junio C Hamano9d971152012-12-19 00:43:11649 if (!noteholder) {
650 return;
651 }
652 var entriesToRemove = [];
653 for (i = 0; i < noteholder.childNodes.length; i++) {
654 var entry = noteholder.childNodes[i];
655 if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
656 entriesToRemove.push(entry);
657 }
658 for (i = 0; i < entriesToRemove.length; i++) {
659 noteholder.removeChild(entriesToRemove[i]);
660 }
661
662 // Rebuild footnote entries.
663 var cont = document.getElementById("content");
Junio C Hamano7bd050f2011-09-22 06:32:22664 var spans = cont.getElementsByTagName("span");
665 var refs = {};
666 var n = 0;
667 for (i=0; i<spans.length; i++) {
668 if (spans[i].className == "footnote") {
669 n++;
Junio C Hamano9d971152012-12-19 00:43:11670 var note = spans[i].getAttribute("data-note");
671 if (!note) {
672 // Use [\s\S] in place of . so multi-line matches work.
673 // Because JavaScript has no s (dotall) regex flag.
674 note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
675 spans[i].innerHTML =
676 "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
677 "' title='View footnote' class='footnote'>" + n + "</a>]";
678 spans[i].setAttribute("data-note", note);
679 }
Junio C Hamano7bd050f2011-09-22 06:32:22680 noteholder.innerHTML +=
681 "<div class='footnote' id='_footnote_" + n + "'>" +
682 "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
683 n + "</a>. " + note + "</div>";
Junio C Hamano7bd050f2011-09-22 06:32:22684 var id =spans[i].getAttribute("id");
685 if (id != null) refs["#"+id] = n;
686 }
687 }
688 if (n == 0)
689 noteholder.parentNode.removeChild(noteholder);
690 else {
691 // Process footnoterefs.
692 for (i=0; i<spans.length; i++) {
693 if (spans[i].className == "footnoteref") {
694 var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
695 href = href.match(/#.*/)[0]; // Because IE return full URL.
696 n = refs[href];
697 spans[i].innerHTML =
698 "[<a href='#_footnote_" + n +
699 "' title='View footnote' class='footnote'>" + n + "</a>]";
700 }
701 }
702 }
Junio C Hamano9d971152012-12-19 00:43:11703},
704
705install: function(toclevels) {
706 var timerId;
707
708 function reinstall() {
709 asciidoc.footnotes();
710 if (toclevels) {
711 asciidoc.toc(toclevels);
712 }
713 }
714
715 function reinstallAndRemoveTimer() {
716 clearInterval(timerId);
717 reinstall();
718 }
719
720 timerId = setInterval(reinstall, 500);
721 if (document.addEventListener)
722 document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
723 else
724 window.onload = reinstallAndRemoveTimer;
Junio C Hamano7bd050f2011-09-22 06:32:22725}
726
727}
Junio C Hamano9d971152012-12-19 00:43:11728asciidoc.install();
Junio C Hamano7bd050f2011-09-22 06:32:22729/*]]>*/
730</script>
Junio C Hamano1a4e8412005-12-27 08:17:23731</head>
Junio C Hamano9d971152012-12-19 00:43:11732<body class="manpage">
Junio C Hamano1a4e8412005-12-27 08:17:23733<div id="header">
734<h1>
735git-branch(1) Manual Page
736</h1>
737<h2>NAME</h2>
738<div class="sectionbody">
739<p>git-branch -
Junio C Hamano7c73c662007-01-19 00:37:50740 List, create, or delete branches
Junio C Hamano1a4e8412005-12-27 08:17:23741</p>
742</div>
743</div>
Junio C Hamano7bd050f2011-09-22 06:32:22744<div id="content">
Junio C Hamano9d971152012-12-19 00:43:11745<div class="sect1">
Junio C Hamano97bcb482010-11-25 03:16:07746<h2 id="_synopsis">SYNOPSIS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23747<div class="sectionbody">
Junio C Hamano2b135272006-03-18 07:45:42748<div class="verseblock">
Junio C Hamano9d971152012-12-19 00:43:11749<pre class="content"><em>git branch</em> [--color[=&lt;when&gt;] | --no-color] [-r | -a]
Junio C Hamano8fb66e52011-10-05 20:59:51750 [--list] [-v [--abbrev=&lt;length&gt; | --no-abbrev]]
Junio C Hamano22700fb2012-05-03 23:07:25751 [--column[=&lt;options&gt;] | --no-column]
Junio C Hamano8fb66e52011-10-05 20:59:51752 [(--merged | --no-merged | --contains) [&lt;commit&gt;]] [&lt;pattern&gt;&#8230;]
Junio C Hamano57827fb2010-01-23 03:02:50753<em>git branch</em> [--set-upstream | --track | --no-track] [-l] [-f] &lt;branchname&gt; [&lt;start-point&gt;]
Junio C Hamanoeccdd4a2012-09-10 23:28:17754<em>git branch</em> (--set-upstream-to=&lt;upstream&gt; | -u &lt;upstream&gt;) [&lt;branchname&gt;]
755<em>git branch</em> --unset-upstream [&lt;branchname&gt;]
Junio C Hamanofce7c7e2008-07-02 03:06:38756<em>git branch</em> (-m | -M) [&lt;oldbranch&gt;] &lt;newbranch&gt;
Junio C Hamano515ab1d2011-12-09 23:41:20757<em>git branch</em> (-d | -D) [-r] &lt;branchname&gt;&#8230;
Junio C Hamano9d971152012-12-19 00:43:11758<em>git branch</em> --edit-description [&lt;branchname&gt;]</pre>
759<div class="attribution">
Junio C Hamano97bcb482010-11-25 03:16:07760</div></div>
Junio C Hamano1a4e8412005-12-27 08:17:23761</div>
Junio C Hamano9d971152012-12-19 00:43:11762</div>
763<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31764<h2 id="_description">DESCRIPTION</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23765<div class="sectionbody">
Junio C Hamanob5e079f2013-02-08 00:02:52766<div class="paragraph"><p>If <code>--list</code> is given, or if there are no non-option arguments, existing
767branches are listed; the current branch will be highlighted with an
768asterisk. Option <code>-r</code> causes the remote-tracking branches to be listed,
769and option <code>-a</code> shows both local and remote branches. If a <code>&lt;pattern&gt;</code>
770is given, it is used as a shell wildcard to restrict the output to
771matching branches. If multiple patterns are given, a branch is shown if
772it matches any of the patterns. Note that when providing a
773<code>&lt;pattern&gt;</code>, you must use <code>--list</code>; otherwise the command is interpreted
774as branch creation.</p></div>
Junio C Hamano9d971152012-12-19 00:43:11775<div class="paragraph"><p>With <code>--contains</code>, shows only the branches that contain the named commit
Junio C Hamanofd83b8e2009-03-22 08:21:41776(in other words, the branches whose tip commits are descendants of the
Junio C Hamano9d971152012-12-19 00:43:11777named commit). With <code>--merged</code>, only branches merged into the named
Junio C Hamano38ddcce2008-07-15 15:49:03778commit (i.e. the branches whose tip commits are reachable from the named
Junio C Hamano9d971152012-12-19 00:43:11779commit) will be listed. With <code>--no-merged</code> only branches not merged into
Junio C Hamanofd83b8e2009-03-22 08:21:41780the named commit will be listed. If the &lt;commit&gt; argument is missing it
781defaults to <em>HEAD</em> (i.e. the tip of the current branch).</p></div>
Junio C Hamano97bcb482010-11-25 03:16:07782<div class="paragraph"><p>The command&#8217;s second form creates a new branch head named &lt;branchname&gt;
Junio C Hamanoc0e55e72009-10-10 00:56:29783which points to the current <em>HEAD</em>, or &lt;start-point&gt; if given.</p></div>
Junio C Hamano97bcb482010-11-25 03:16:07784<div class="paragraph"><p>Note that this will create the new branch, but it will not switch the
Junio C Hamano1b50ce92007-10-03 12:05:53785working tree to it; use "git checkout &lt;newbranch&gt;" to switch to the
Junio C Hamanoba4b9282008-07-06 05:20:31786new branch.</p></div>
Junio C Hamano076ffcc2013-02-06 05:13:21787<div class="paragraph"><p>When a local branch is started off a remote-tracking branch, Git sets up the
Junio C Hamano1aa40d22010-01-21 17:46:43788branch so that <em>git pull</em> will appropriately merge from
Junio C Hamano97bcb482010-11-25 03:16:07789the remote-tracking branch. This behavior may be changed via the global
Junio C Hamano9d971152012-12-19 00:43:11790<code>branch.autosetupmerge</code> configuration flag. That setting can be
791overridden by using the <code>--track</code> and <code>--no-track</code> options, and
792changed later using <code>git branch --set-upstream-to</code>.</p></div>
793<div class="paragraph"><p>With a <code>-m</code> or <code>-M</code> option, &lt;oldbranch&gt; will be renamed to &lt;newbranch&gt;.
Junio C Hamanoe7935c42006-12-13 21:32:17794If &lt;oldbranch&gt; had a corresponding reflog, it is renamed to match
795&lt;newbranch&gt;, and a reflog entry is created to remember the branch
796renaming. If &lt;newbranch&gt; exists, -M must be used to force the rename
Junio C Hamanoba4b9282008-07-06 05:20:31797to happen.</p></div>
Junio C Hamano9d971152012-12-19 00:43:11798<div class="paragraph"><p>With a <code>-d</code> or <code>-D</code> option, <code>&lt;branchname&gt;</code> will be deleted. You may
Junio C Hamano341071d2006-06-04 07:24:48799specify more than one branch for deletion. If the branch currently
Junio C Hamanoba4b9282008-07-06 05:20:31800has a reflog then the reflog will also be deleted.</p></div>
Junio C Hamano9d971152012-12-19 00:43:11801<div class="paragraph"><p>Use <code>-r</code> together with <code>-d</code> to delete remote-tracking branches. Note, that it
Junio C Hamano258e4412007-11-29 02:28:32802only makes sense to delete remote-tracking branches if they no longer exist
Junio C Hamano1aa40d22010-01-21 17:46:43803in the remote repository or if <em>git fetch</em> was configured not to fetch
Junio C Hamanoa28a9202012-06-21 07:08:23804them again. See also the <em>prune</em> subcommand of <a href="git-remote.html">git-remote(1)</a> for a
Junio C Hamanofd83b8e2009-03-22 08:21:41805way to clean up all obsolete remote-tracking branches.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23806</div>
Junio C Hamano9d971152012-12-19 00:43:11807</div>
808<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31809<h2 id="_options">OPTIONS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23810<div class="sectionbody">
Junio C Hamano97bcb482010-11-25 03:16:07811<div class="dlist"><dl>
812<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23813-d
814</dt>
Junio C Hamano8fb66e52011-10-05 20:59:51815<dt class="hdlist1">
816--delete
817</dt>
Junio C Hamano1a4e8412005-12-27 08:17:23818<dd>
819<p>
Junio C Hamanod9657062010-04-18 00:01:03820 Delete a branch. The branch must be fully merged in its
Junio C Hamano9d971152012-12-19 00:43:11821 upstream branch, or in <code>HEAD</code> if no upstream was set with
822 <code>--track</code> or <code>--set-upstream</code>.
Junio C Hamano1a4e8412005-12-27 08:17:23823</p>
824</dd>
Junio C Hamano97bcb482010-11-25 03:16:07825<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23826-D
827</dt>
828<dd>
829<p>
Junio C Hamano258e4412007-11-29 02:28:32830 Delete a branch irrespective of its merged status.
Junio C Hamano1a4e8412005-12-27 08:17:23831</p>
832</dd>
Junio C Hamano97bcb482010-11-25 03:16:07833<dt class="hdlist1">
Junio C Hamano341071d2006-06-04 07:24:48834-l
835</dt>
Junio C Hamano8fb66e52011-10-05 20:59:51836<dt class="hdlist1">
837--create-reflog
838</dt>
Junio C Hamano341071d2006-06-04 07:24:48839<dd>
840<p>
Junio C Hamano97bcb482010-11-25 03:16:07841 Create the branch&#8217;s reflog. This activates recording of
Junio C Hamano1d90cb02007-07-03 07:05:31842 all changes made to the branch ref, enabling use of date
843 based sha1 expressions such as "&lt;branchname&gt;@{yesterday}".
Junio C Hamanoe7495622010-04-09 07:18:35844 Note that in non-bare repositories, reflogs are usually
Junio C Hamano9d971152012-12-19 00:43:11845 enabled by default by the <code>core.logallrefupdates</code> config option.
Junio C Hamano341071d2006-06-04 07:24:48846</p>
847</dd>
Junio C Hamano97bcb482010-11-25 03:16:07848<dt class="hdlist1">
Junio C Hamano560a1f62006-01-30 04:19:57849-f
850</dt>
Junio C Hamano97bcb482010-11-25 03:16:07851<dt class="hdlist1">
Junio C Hamano68cfa3a2009-08-30 00:22:55852--force
853</dt>
Junio C Hamano560a1f62006-01-30 04:19:57854<dd>
855<p>
Junio C Hamanoea82cff2009-03-18 01:54:48856 Reset &lt;branchname&gt; to &lt;startpoint&gt; if &lt;branchname&gt; exists
Junio C Hamano9d971152012-12-19 00:43:11857 already. Without <code>-f</code> <em>git branch</em> refuses to change an existing branch.
Junio C Hamanoc8d88c22006-04-29 07:02:01858</p>
859</dd>
Junio C Hamano97bcb482010-11-25 03:16:07860<dt class="hdlist1">
Junio C Hamanoe7935c42006-12-13 21:32:17861-m
862</dt>
Junio C Hamano8fb66e52011-10-05 20:59:51863<dt class="hdlist1">
864--move
865</dt>
Junio C Hamanoe7935c42006-12-13 21:32:17866<dd>
867<p>
868 Move/rename a branch and the corresponding reflog.
869</p>
870</dd>
Junio C Hamano97bcb482010-11-25 03:16:07871<dt class="hdlist1">
Junio C Hamanoe7935c42006-12-13 21:32:17872-M
873</dt>
874<dd>
875<p>
Junio C Hamanofd83b8e2009-03-22 08:21:41876 Move/rename a branch even if the new branch name already exists.
Junio C Hamanoe7935c42006-12-13 21:32:17877</p>
878</dd>
Junio C Hamano97bcb482010-11-25 03:16:07879<dt class="hdlist1">
Junio C Hamano4aa0bcc2010-03-03 05:13:12880--color[=&lt;when&gt;]
Junio C Hamanoeb692952007-01-03 22:02:12881</dt>
882<dd>
883<p>
Junio C Hamano97bcb482010-11-25 03:16:07884 Color branches to highlight current, local, and
885 remote-tracking branches.
Junio C Hamano4aa0bcc2010-03-03 05:13:12886 The value must be always (the default), never, or auto.
Junio C Hamanoeb692952007-01-03 22:02:12887</p>
888</dd>
Junio C Hamano97bcb482010-11-25 03:16:07889<dt class="hdlist1">
Junio C Hamanoeb692952007-01-03 22:02:12890--no-color
891</dt>
892<dd>
893<p>
894 Turn off branch colors, even when the configuration file gives the
895 default to color output.
Junio C Hamano9d971152012-12-19 00:43:11896 Same as <code>--color=never</code>.
Junio C Hamanoeb692952007-01-03 22:02:12897</p>
898</dd>
Junio C Hamano97bcb482010-11-25 03:16:07899<dt class="hdlist1">
Junio C Hamano22700fb2012-05-03 23:07:25900--column[=&lt;options&gt;]
901</dt>
902<dt class="hdlist1">
903--no-column
904</dt>
905<dd>
906<p>
907 Display branch listing in columns. See configuration variable
Junio C Hamano9d971152012-12-19 00:43:11908 column.branch for option syntax.<code>--column</code> and <code>--no-column</code>
Junio C Hamano22700fb2012-05-03 23:07:25909 without options are equivalent to <em>always</em> and <em>never</em> respectively.
910</p>
911<div class="paragraph"><p>This option is only applicable in non-verbose mode.</p></div>
912</dd>
913<dt class="hdlist1">
Junio C Hamanoc8d88c22006-04-29 07:02:01914-r
915</dt>
Junio C Hamano8fb66e52011-10-05 20:59:51916<dt class="hdlist1">
917--remotes
918</dt>
Junio C Hamanoc8d88c22006-04-29 07:02:01919<dd>
920<p>
Junio C Hamano63ef0ac2006-12-22 07:28:18921 List or delete (if used with -d) the remote-tracking branches.
Junio C Hamanofe9acab2006-11-24 12:10:55922</p>
923</dd>
Junio C Hamano97bcb482010-11-25 03:16:07924<dt class="hdlist1">
Junio C Hamanofe9acab2006-11-24 12:10:55925-a
926</dt>
Junio C Hamano8fb66e52011-10-05 20:59:51927<dt class="hdlist1">
928--all
929</dt>
Junio C Hamanofe9acab2006-11-24 12:10:55930<dd>
931<p>
932 List both remote-tracking branches and local branches.
Junio C Hamano560a1f62006-01-30 04:19:57933</p>
934</dd>
Junio C Hamano97bcb482010-11-25 03:16:07935<dt class="hdlist1">
Junio C Hamano8fb66e52011-10-05 20:59:51936--list
937</dt>
938<dd>
939<p>
Junio C Hamano9d971152012-12-19 00:43:11940 Activate the list mode. <code>git branch &lt;pattern&gt;</code> would try to create a branch,
941 use <code>git branch --list &lt;pattern&gt;</code> to list matching branches.
Junio C Hamano8fb66e52011-10-05 20:59:51942</p>
943</dd>
944<dt class="hdlist1">
Junio C Hamanoeb415992008-06-08 22:49:47945-v
946</dt>
Junio C Hamano97bcb482010-11-25 03:16:07947<dt class="hdlist1">
Junio C Hamano4f07aec2012-09-25 19:08:44948-vv
949</dt>
950<dt class="hdlist1">
Junio C Hamanoeb415992008-06-08 22:49:47951--verbose
Junio C Hamano53edd072006-11-25 10:05:21952</dt>
953<dd>
954<p>
Junio C Hamano8fb66e52011-10-05 20:59:51955 When in list mode,
956 show sha1 and commit subject line for each head, along with
Junio C Hamano98e32c32009-04-13 02:39:53957 relationship to upstream branch (if any). If given twice, print
Junio C Hamano9d971152012-12-19 00:43:11958 the name of the upstream branch, as well (see also <code>git remote
959 show &lt;remote&gt;</code>).
Junio C Hamano53edd072006-11-25 10:05:21960</p>
961</dd>
Junio C Hamano97bcb482010-11-25 03:16:07962<dt class="hdlist1">
Junio C Hamano51f87de2012-04-16 21:18:54963-q
964</dt>
965<dt class="hdlist1">
966--quiet
967</dt>
968<dd>
969<p>
970 Be more quiet when creating or deleting a branch, suppressing
971 non-error messages.
972</p>
973</dd>
974<dt class="hdlist1">
Junio C Hamano53edd072006-11-25 10:05:21975--abbrev=&lt;length&gt;
976</dt>
977<dd>
978<p>
Junio C Hamano97bcb482010-11-25 03:16:07979 Alter the sha1&#8217;s minimum display length in the output listing.
Junio C Hamano9d971152012-12-19 00:43:11980 The default value is 7 and can be overridden by the <code>core.abbrev</code>
Junio C Hamano6e41cb32011-08-29 07:12:49981 config option.
Junio C Hamano53edd072006-11-25 10:05:21982</p>
983</dd>
Junio C Hamano97bcb482010-11-25 03:16:07984<dt class="hdlist1">
Junio C Hamanoa3fccdf2007-03-03 05:18:26985--no-abbrev
986</dt>
987<dd>
988<p>
Junio C Hamanofd83b8e2009-03-22 08:21:41989 Display the full sha1s in the output listing rather than abbreviating them.
Junio C Hamanoa3fccdf2007-03-03 05:18:26990</p>
991</dd>
Junio C Hamano97bcb482010-11-25 03:16:07992<dt class="hdlist1">
Junio C Hamano89bdb3b2009-05-10 06:48:14993-t
994</dt>
Junio C Hamano97bcb482010-11-25 03:16:07995<dt class="hdlist1">
Junio C Hamano1b50ce92007-10-03 12:05:53996--track
997</dt>
998<dd>
999<p>
Junio C Hamano3bd66e92009-04-18 06:17:561000 When creating a new branch, set up configuration to mark the
1001 start-point branch as "upstream" from the new branch. This
1002 configuration will tell git to show the relationship between the
Junio C Hamano9d971152012-12-19 00:43:111003 two branches in <code>git status</code> and <code>git branch -v</code>. Furthermore,
1004 it directs <code>git pull</code> without arguments to pull from the
Junio C Hamano3bd66e92009-04-18 06:17:561005 upstream when the new branch is checked out.
Junio C Hamano1b50ce92007-10-03 12:05:531006</p>
Junio C Hamano97bcb482010-11-25 03:16:071007<div class="paragraph"><p>This behavior is the default when the start point is a remote-tracking branch.
Junio C Hamano9d971152012-12-19 00:43:111008Set the branch.autosetupmerge configuration variable to <code>false</code> if you
1009want <code>git checkout</code> and <code>git branch</code> to always behave as if <em>--no-track</em>
1010were given. Set it to <code>always</code> if you want this behavior when the
Junio C Hamano97bcb482010-11-25 03:16:071011start-point is either a local or remote-tracking branch.</p></div>
Junio C Hamano1b50ce92007-10-03 12:05:531012</dd>
Junio C Hamano97bcb482010-11-25 03:16:071013<dt class="hdlist1">
Junio C Hamano1b50ce92007-10-03 12:05:531014--no-track
1015</dt>
1016<dd>
1017<p>
Junio C Hamano3bd66e92009-04-18 06:17:561018 Do not set up "upstream" configuration, even if the
1019 branch.autosetupmerge configuration variable is true.
Junio C Hamano1b50ce92007-10-03 12:05:531020</p>
1021</dd>
Junio C Hamano97bcb482010-11-25 03:16:071022<dt class="hdlist1">
Junio C Hamano57827fb2010-01-23 03:02:501023--set-upstream
1024</dt>
1025<dd>
1026<p>
Junio C Hamano9d971152012-12-19 00:43:111027 If specified branch does not exist yet or if <code>--force</code> has been
1028 given, acts exactly like <code>--track</code>. Otherwise sets up configuration
1029 like <code>--track</code> would when creating the branch, except that where
Junio C Hamano57827fb2010-01-23 03:02:501030 branch points to is not changed.
1031</p>
1032</dd>
Junio C Hamano97bcb482010-11-25 03:16:071033<dt class="hdlist1">
Junio C Hamanoeccdd4a2012-09-10 23:28:171034-u &lt;upstream&gt;
1035</dt>
1036<dt class="hdlist1">
1037--set-upstream-to=&lt;upstream&gt;
1038</dt>
1039<dd>
1040<p>
1041 Set up &lt;branchname&gt;'s tracking information so &lt;upstream&gt; is
1042 considered &lt;branchname&gt;'s upstream branch. If no &lt;branchname&gt;
1043 is specified, then it defaults to the current branch.
1044</p>
1045</dd>
1046<dt class="hdlist1">
1047--unset-upstream
1048</dt>
1049<dd>
1050<p>
1051 Remove the upstream information for &lt;branchname&gt;. If no branch
1052 is specified it defaults to the current branch.
1053</p>
1054</dd>
1055<dt class="hdlist1">
Junio C Hamano515ab1d2011-12-09 23:41:201056--edit-description
1057</dt>
1058<dd>
1059<p>
1060 Open an editor and edit the text to explain what the branch is
Junio C Hamano9d971152012-12-19 00:43:111061 for, to be used by various other commands (e.g. <code>request-pull</code>).
Junio C Hamano515ab1d2011-12-09 23:41:201062</p>
1063</dd>
1064<dt class="hdlist1">
Junio C Hamanocae88e22012-03-09 00:13:201065--contains [&lt;commit&gt;]
Junio C Hamano47d68a52008-05-06 06:35:401066</dt>
1067<dd>
1068<p>
Junio C Hamanocae88e22012-03-09 00:13:201069 Only list branches which contain the specified commit (HEAD
Junio C Hamanob5e079f2013-02-08 00:02:521070 if not specified). Implies <code>--list</code>.
Junio C Hamano47d68a52008-05-06 06:35:401071</p>
1072</dd>
Junio C Hamano97bcb482010-11-25 03:16:071073<dt class="hdlist1">
Junio C Hamanoc0e55e72009-10-10 00:56:291074--merged [&lt;commit&gt;]
Junio C Hamano47d68a52008-05-06 06:35:401075</dt>
1076<dd>
1077<p>
Junio C Hamanoc0e55e72009-10-10 00:56:291078 Only list branches whose tips are reachable from the
Junio C Hamanob5e079f2013-02-08 00:02:521079 specified commit (HEAD if not specified). Implies <code>--list</code>.
Junio C Hamano47d68a52008-05-06 06:35:401080</p>
1081</dd>
Junio C Hamano97bcb482010-11-25 03:16:071082<dt class="hdlist1">
Junio C Hamanoc0e55e72009-10-10 00:56:291083--no-merged [&lt;commit&gt;]
Junio C Hamano47d68a52008-05-06 06:35:401084</dt>
1085<dd>
1086<p>
Junio C Hamanoc0e55e72009-10-10 00:56:291087 Only list branches whose tips are not reachable from the
Junio C Hamanob5e079f2013-02-08 00:02:521088 specified commit (HEAD if not specified). Implies <code>--list</code>.
Junio C Hamano47d68a52008-05-06 06:35:401089</p>
1090</dd>
Junio C Hamano97bcb482010-11-25 03:16:071091<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:231092&lt;branchname&gt;
1093</dt>
1094<dd>
1095<p>
1096 The name of the branch to create or delete.
Junio C Hamanob2f5edd2006-05-21 10:50:091097 The new branch name must pass all checks defined by
Junio C Hamanoa28a9202012-06-21 07:08:231098 <a href="git-check-ref-format.html">git-check-ref-format(1)</a>. Some of these checks
Junio C Hamanob2f5edd2006-05-21 10:50:091099 may restrict the characters allowed in a branch name.
Junio C Hamano1a4e8412005-12-27 08:17:231100</p>
1101</dd>
Junio C Hamano97bcb482010-11-25 03:16:071102<dt class="hdlist1">
Junio C Hamano560a1f62006-01-30 04:19:571103&lt;start-point&gt;
Junio C Hamano1a4e8412005-12-27 08:17:231104</dt>
1105<dd>
1106<p>
Junio C Hamanoc0e55e72009-10-10 00:56:291107 The new branch head will point to this commit. It may be
1108 given as a branch name, a commit-id, or a tag. If this
1109 option is omitted, the current HEAD will be used instead.
Junio C Hamano1a4e8412005-12-27 08:17:231110</p>
1111</dd>
Junio C Hamano97bcb482010-11-25 03:16:071112<dt class="hdlist1">
Junio C Hamanoe7935c42006-12-13 21:32:171113&lt;oldbranch&gt;
1114</dt>
1115<dd>
1116<p>
1117 The name of an existing branch to rename.
1118</p>
1119</dd>
Junio C Hamano97bcb482010-11-25 03:16:071120<dt class="hdlist1">
Junio C Hamanoe7935c42006-12-13 21:32:171121&lt;newbranch&gt;
1122</dt>
1123<dd>
1124<p>
1125 The new name for an existing branch. The same restrictions as for
Junio C Hamanofd83b8e2009-03-22 08:21:411126 &lt;branchname&gt; apply.
Junio C Hamanoe7935c42006-12-13 21:32:171127</p>
1128</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311129</dl></div>
Junio C Hamanoc8d88c22006-04-29 07:02:011130</div>
Junio C Hamano9d971152012-12-19 00:43:111131</div>
1132<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311133<h2 id="_examples">Examples</h2>
Junio C Hamanoc8d88c22006-04-29 07:02:011134<div class="sectionbody">
Junio C Hamano97bcb482010-11-25 03:16:071135<div class="dlist"><dl>
1136<dt class="hdlist1">
Junio C Hamanofd83b8e2009-03-22 08:21:411137Start development from a known tag
Junio C Hamano1a4e8412005-12-27 08:17:231138</dt>
1139<dd>
1140<div class="listingblock">
1141<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111142<pre><code>$ git clone git://git.kernel.org/pub/scm/.../linux-2.6 my2.6
Junio C Hamano1a4e8412005-12-27 08:17:231143$ cd my2.6
Junio C Hamano97bcb482010-11-25 03:16:071144$ git branch my2.6.14 v2.6.14 <b>&lt;1&gt;</b>
Junio C Hamano9d971152012-12-19 00:43:111145$ git checkout my2.6.14</code></pre>
Junio C Hamano1a4e8412005-12-27 08:17:231146</div></div>
Junio C Hamano97bcb482010-11-25 03:16:071147<div class="colist arabic"><ol>
Junio C Hamanoc8d88c22006-04-29 07:02:011148<li>
1149<p>
1150This step and the next one could be combined into a single step with
1151"checkout -b my2.6.14 v2.6.14".
1152</p>
1153</li>
Junio C Hamanoba4b9282008-07-06 05:20:311154</ol></div>
Junio C Hamano1a4e8412005-12-27 08:17:231155</dd>
Junio C Hamano97bcb482010-11-25 03:16:071156<dt class="hdlist1">
Junio C Hamanofd83b8e2009-03-22 08:21:411157Delete an unneeded branch
Junio C Hamano1a4e8412005-12-27 08:17:231158</dt>
1159<dd>
1160<div class="listingblock">
1161<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111162<pre><code>$ git clone git://git.kernel.org/.../git.git my.git
Junio C Hamano1a4e8412005-12-27 08:17:231163$ cd my.git
Junio C Hamano97bcb482010-11-25 03:16:071164$ git branch -d -r origin/todo origin/html origin/man <b>&lt;1&gt;</b>
Junio C Hamano9d971152012-12-19 00:43:111165$ git branch -D test <b>&lt;2&gt;</b></code></pre>
Junio C Hamano1a4e8412005-12-27 08:17:231166</div></div>
Junio C Hamano97bcb482010-11-25 03:16:071167<div class="colist arabic"><ol>
Junio C Hamanoc8d88c22006-04-29 07:02:011168<li>
1169<p>
Junio C Hamanofd83b8e2009-03-22 08:21:411170Delete the remote-tracking branches "todo", "html" and "man". The next
1171<em>fetch</em> or <em>pull</em> will create them again unless you configure them not to.
Junio C Hamanoa28a9202012-06-21 07:08:231172See <a href="git-fetch.html">git-fetch(1)</a>.
Junio C Hamano63ef0ac2006-12-22 07:28:181173</p>
1174</li>
1175<li>
1176<p>
Junio C Hamanofd83b8e2009-03-22 08:21:411177Delete the "test" branch even if the "master" branch (or whichever branch
1178is currently checked out) does not have all commits from the test branch.
Junio C Hamanoc8d88c22006-04-29 07:02:011179</p>
1180</li>
Junio C Hamanoba4b9282008-07-06 05:20:311181</ol></div>
Junio C Hamano1a4e8412005-12-27 08:17:231182</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311183</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:231184</div>
Junio C Hamano9d971152012-12-19 00:43:111185</div>
1186<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311187<h2 id="_notes">Notes</h2>
Junio C Hamanoc8d88c22006-04-29 07:02:011188<div class="sectionbody">
Junio C Hamano97bcb482010-11-25 03:16:071189<div class="paragraph"><p>If you are creating a branch that you want to checkout immediately, it is
Junio C Hamano9d971152012-12-19 00:43:111190easier to use the git checkout command with its <code>-b</code> option to create
Junio C Hamanoba4b9282008-07-06 05:20:311191a branch and check it out with a single command.</p></div>
Junio C Hamano9d971152012-12-19 00:43:111192<div class="paragraph"><p>The options <code>--contains</code>, <code>--merged</code> and <code>--no-merged</code> serve three related
Junio C Hamanoba4b9282008-07-06 05:20:311193but different purposes:</p></div>
Junio C Hamano97bcb482010-11-25 03:16:071194<div class="ulist"><ul>
Junio C Hamano47d68a52008-05-06 06:35:401195<li>
1196<p>
Junio C Hamano9d971152012-12-19 00:43:111197<code>--contains &lt;commit&gt;</code> is used to find all branches which will need
Junio C Hamano47d68a52008-05-06 06:35:401198 special attention if &lt;commit&gt; were to be rebased or amended, since those
1199 branches contain the specified &lt;commit&gt;.
1200</p>
1201</li>
1202<li>
1203<p>
Junio C Hamano9d971152012-12-19 00:43:111204<code>--merged</code> is used to find all branches which can be safely deleted,
Junio C Hamano47d68a52008-05-06 06:35:401205 since those branches are fully contained by HEAD.
1206</p>
1207</li>
1208<li>
1209<p>
Junio C Hamano9d971152012-12-19 00:43:111210<code>--no-merged</code> is used to find branches which are candidates for merging
Junio C Hamano47d68a52008-05-06 06:35:401211 into HEAD, since those branches are not fully contained by HEAD.
1212</p>
1213</li>
Junio C Hamanoba4b9282008-07-06 05:20:311214</ul></div>
Junio C Hamanoc8d88c22006-04-29 07:02:011215</div>
Junio C Hamano9d971152012-12-19 00:43:111216</div>
1217<div class="sect1">
Junio C Hamanoc276ec72009-08-26 01:35:221218<h2 id="_see_also">SEE ALSO</h2>
1219<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:231220<div class="paragraph"><p><a href="git-check-ref-format.html">git-check-ref-format(1)</a>,
1221<a href="git-fetch.html">git-fetch(1)</a>,
1222<a href="git-remote.html">git-remote(1)</a>,
Junio C Hamanoc0e55e72009-10-10 00:56:291223<a href="user-manual.html#what-is-a-branch">&#8220;Understanding history: What is
Junio C Hamano97bcb482010-11-25 03:16:071224a branch?&#8221;</a> in the Git User&#8217;s Manual.</p></div>
Junio C Hamanoc276ec72009-08-26 01:35:221225</div>
Junio C Hamano9d971152012-12-19 00:43:111226</div>
1227<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311228<h2 id="_git">GIT</h2>
Junio C Hamano1a4e8412005-12-27 08:17:231229<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:231230<div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:231231</div>
Junio C Hamano7bd050f2011-09-22 06:32:221232</div>
Junio C Hamano9d971152012-12-19 00:43:111233</div>
Junio C Hamano7bd050f2011-09-22 06:32:221234<div id="footnotes"><hr /></div>
Junio C Hamano1a4e8412005-12-27 08:17:231235<div id="footer">
1236<div id="footer-text">
Junio C Hamanob5e079f2013-02-08 00:02:521237Last updated 2013-02-07 16:01:27 PST
Junio C Hamano1a4e8412005-12-27 08:17:231238</div>
1239</div>
1240</body>
1241</html>