Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | <!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 Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 6 | <meta name="generator" content="AsciiDoc 8.6.9" /> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 7 | <title>git-pull(1)</title> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 8 | <style type="text/css"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 9 | /* Shared CSS for AsciiDoc xhtml11 and html5 backends */ |
| 10 | |
| 11 | /* Default font. */ |
| 12 | body { |
| 13 | font-family: Georgia,serif; |
| 14 | } |
| 15 | |
| 16 | /* Title font. */ |
| 17 | h1, h2, h3, h4, h5, h6, |
| 18 | div.title, caption.title, |
| 19 | thead, p.table.header, |
| 20 | #toctitle, |
| 21 | #author, #revnumber, #revdate, #revremark, |
| 22 | #footer { |
| 23 | font-family: Arial,Helvetica,sans-serif; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | body { |
| 27 | margin: 1em 5% 1em 5%; |
| 28 | } |
| 29 | |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 30 | a { |
| 31 | color: blue; |
| 32 | text-decoration: underline; |
| 33 | } |
| 34 | a:visited { |
| 35 | color: fuchsia; |
| 36 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 37 | |
| 38 | em { |
| 39 | font-style: italic; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 40 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | strong { |
| 44 | font-weight: bold; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 45 | color: #083194; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 46 | } |
| 47 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 48 | h1, h2, h3, h4, h5, h6 { |
| 49 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 50 | margin-top: 1.2em; |
| 51 | margin-bottom: 0.5em; |
| 52 | line-height: 1.3; |
| 53 | } |
| 54 | |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 55 | h1, h2, h3 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 56 | border-bottom: 2px solid silver; |
| 57 | } |
| 58 | h2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 59 | padding-top: 0.5em; |
| 60 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 61 | h3 { |
| 62 | float: left; |
| 63 | } |
| 64 | h3 + * { |
| 65 | clear: left; |
| 66 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 67 | h5 { |
| 68 | font-size: 1.0em; |
| 69 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 70 | |
| 71 | div.sectionbody { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 72 | margin-left: 0; |
| 73 | } |
| 74 | |
| 75 | hr { |
| 76 | border: 1px solid silver; |
| 77 | } |
| 78 | |
| 79 | p { |
| 80 | margin-top: 0.5em; |
| 81 | margin-bottom: 0.5em; |
| 82 | } |
| 83 | |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 84 | ul, ol, li > p { |
| 85 | margin-top: 0; |
| 86 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 87 | ul > li { color: #aaa; } |
| 88 | ul > li > * { color: black; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 89 | |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 90 | .monospaced, code, pre { |
| 91 | font-family: "Courier New", Courier, monospace; |
| 92 | font-size: inherit; |
| 93 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 94 | padding: 0; |
| 95 | margin: 0; |
| 96 | } |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 97 | pre { |
| 98 | white-space: pre-wrap; |
| 99 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 100 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 101 | #author { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 102 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 103 | font-weight: bold; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 104 | font-size: 1.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 105 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 106 | #email { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 107 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 108 | #revnumber, #revdate, #revremark { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 109 | } |
| 110 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 111 | #footer { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 112 | font-size: small; |
| 113 | border-top: 2px solid silver; |
| 114 | padding-top: 0.5em; |
| 115 | margin-top: 4.0em; |
| 116 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 117 | #footer-text { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 118 | float: left; |
| 119 | padding-bottom: 0.5em; |
| 120 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 121 | #footer-badges { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 122 | float: right; |
| 123 | padding-bottom: 0.5em; |
| 124 | } |
| 125 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 126 | #preamble { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 127 | margin-top: 1.5em; |
| 128 | margin-bottom: 1.5em; |
| 129 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 130 | div.imageblock, div.exampleblock, div.verseblock, |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 131 | div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, |
| 132 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 133 | margin-top: 1.0em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 134 | margin-bottom: 1.5em; |
| 135 | } |
| 136 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 137 | margin-top: 2.0em; |
| 138 | margin-bottom: 2.0em; |
| 139 | margin-right: 10%; |
| 140 | color: #606060; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | div.content { /* Block element content. */ |
| 144 | padding: 0; |
| 145 | } |
| 146 | |
| 147 | /* Block element titles. */ |
| 148 | div.title, caption.title { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 149 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 150 | font-weight: bold; |
| 151 | text-align: left; |
| 152 | margin-top: 1.0em; |
| 153 | margin-bottom: 0.5em; |
| 154 | } |
| 155 | div.title + * { |
| 156 | margin-top: 0; |
| 157 | } |
| 158 | |
| 159 | td div.title:first-child { |
| 160 | margin-top: 0.0em; |
| 161 | } |
| 162 | div.content div.title:first-child { |
| 163 | margin-top: 0.0em; |
| 164 | } |
| 165 | div.content + div.title { |
| 166 | margin-top: 0.0em; |
| 167 | } |
| 168 | |
| 169 | div.sidebarblock > div.content { |
| 170 | background: #ffffee; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 171 | border: 1px solid #dddddd; |
| 172 | border-left: 4px solid #f0f0f0; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 173 | padding: 0.5em; |
| 174 | } |
| 175 | |
| 176 | div.listingblock > div.content { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 177 | border: 1px solid #dddddd; |
| 178 | border-left: 5px solid #f0f0f0; |
| 179 | background: #f8f8f8; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 180 | padding: 0.5em; |
| 181 | } |
| 182 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 183 | div.quoteblock, div.verseblock { |
| 184 | padding-left: 1.0em; |
| 185 | margin-left: 1.0em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 186 | margin-right: 10%; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 187 | border-left: 5px solid #f0f0f0; |
| 188 | color: #888; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 189 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 190 | |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 191 | div.quoteblock > div.attribution { |
| 192 | padding-top: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 193 | text-align: right; |
| 194 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 195 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 196 | div.verseblock > pre.content { |
| 197 | font-family: inherit; |
| 198 | font-size: inherit; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 199 | } |
| 200 | div.verseblock > div.attribution { |
| 201 | padding-top: 0.75em; |
| 202 | text-align: left; |
| 203 | } |
| 204 | /* DEPRECATED: Pre version 8.2.7 verse style literal block. */ |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 205 | div.verseblock + div.attribution { |
| 206 | text-align: left; |
| 207 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 208 | |
| 209 | div.admonitionblock .icon { |
| 210 | vertical-align: top; |
| 211 | font-size: 1.1em; |
| 212 | font-weight: bold; |
| 213 | text-decoration: underline; |
| 214 | color: #527bbd; |
| 215 | padding-right: 0.5em; |
| 216 | } |
| 217 | div.admonitionblock td.content { |
| 218 | padding-left: 0.5em; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 219 | border-left: 3px solid #dddddd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | div.exampleblock > div.content { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 223 | border-left: 3px solid #dddddd; |
| 224 | padding-left: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 225 | } |
| 226 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 227 | div.imageblock div.content { padding-left: 0; } |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 228 | span.image img { border-style: none; vertical-align: text-bottom; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 229 | a.image:visited { color: white; } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 230 | |
| 231 | dl { |
| 232 | margin-top: 0.8em; |
| 233 | margin-bottom: 0.8em; |
| 234 | } |
| 235 | dt { |
| 236 | margin-top: 0.5em; |
| 237 | margin-bottom: 0; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 238 | font-style: normal; |
| 239 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 240 | } |
| 241 | dd > *:first-child { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 242 | margin-top: 0.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 243 | } |
| 244 | |
| 245 | ul, ol { |
| 246 | list-style-position: outside; |
| 247 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 248 | ol.arabic { |
| 249 | list-style-type: decimal; |
| 250 | } |
| 251 | ol.loweralpha { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 252 | list-style-type: lower-alpha; |
| 253 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 254 | ol.upperalpha { |
| 255 | list-style-type: upper-alpha; |
| 256 | } |
| 257 | ol.lowerroman { |
| 258 | list-style-type: lower-roman; |
| 259 | } |
| 260 | ol.upperroman { |
| 261 | list-style-type: upper-roman; |
| 262 | } |
| 263 | |
| 264 | div.compact ul, div.compact ol, |
| 265 | div.compact p, div.compact p, |
| 266 | div.compact div, div.compact div { |
| 267 | margin-top: 0.1em; |
| 268 | margin-bottom: 0.1em; |
| 269 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 270 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 271 | tfoot { |
| 272 | font-weight: bold; |
| 273 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 274 | td > div.verse { |
| 275 | white-space: pre; |
| 276 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 277 | |
| 278 | div.hdlist { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 279 | margin-top: 0.8em; |
| 280 | margin-bottom: 0.8em; |
| 281 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 282 | div.hdlist tr { |
| 283 | padding-bottom: 15px; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 284 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 285 | dt.hdlist1.strong, td.hdlist1.strong { |
| 286 | font-weight: bold; |
| 287 | } |
| 288 | td.hdlist1 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 289 | vertical-align: top; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 290 | font-style: normal; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 291 | padding-right: 0.8em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 292 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 293 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 294 | td.hdlist2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 295 | vertical-align: top; |
| 296 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 297 | div.hdlist.compact tr { |
| 298 | margin: 0; |
| 299 | padding-bottom: 0; |
| 300 | } |
| 301 | |
| 302 | .comment { |
| 303 | background: yellow; |
| 304 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 305 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 306 | .footnote, .footnoteref { |
| 307 | font-size: 0.8em; |
| 308 | } |
| 309 | |
| 310 | span.footnote, span.footnoteref { |
| 311 | vertical-align: super; |
| 312 | } |
| 313 | |
| 314 | #footnotes { |
| 315 | margin: 20px 0 20px 0; |
| 316 | padding: 7px 0 0 0; |
| 317 | } |
| 318 | |
| 319 | #footnotes div.footnote { |
| 320 | margin: 0 0 5px 0; |
| 321 | } |
| 322 | |
| 323 | #footnotes hr { |
| 324 | border: none; |
| 325 | border-top: 1px solid silver; |
| 326 | height: 1px; |
| 327 | text-align: left; |
| 328 | margin-left: 0; |
| 329 | width: 20%; |
| 330 | min-width: 100px; |
| 331 | } |
| 332 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 333 | div.colist td { |
| 334 | padding-right: 0.5em; |
| 335 | padding-bottom: 0.3em; |
| 336 | vertical-align: top; |
| 337 | } |
| 338 | div.colist td img { |
| 339 | margin-top: 0.3em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 340 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 341 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 342 | @media print { |
| 343 | #footer-badges { display: none; } |
| 344 | } |
| 345 | |
| 346 | #toc { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 347 | margin-bottom: 2.5em; |
| 348 | } |
| 349 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 350 | #toctitle { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 351 | color: #527bbd; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 352 | font-size: 1.1em; |
| 353 | font-weight: bold; |
| 354 | margin-top: 1.0em; |
| 355 | margin-bottom: 0.1em; |
| 356 | } |
| 357 | |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 358 | div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 359 | margin-top: 0; |
| 360 | margin-bottom: 0; |
| 361 | } |
| 362 | div.toclevel2 { |
| 363 | margin-left: 2em; |
| 364 | font-size: 0.9em; |
| 365 | } |
| 366 | div.toclevel3 { |
| 367 | margin-left: 4em; |
| 368 | font-size: 0.9em; |
| 369 | } |
| 370 | div.toclevel4 { |
| 371 | margin-left: 6em; |
| 372 | font-size: 0.9em; |
| 373 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 374 | |
| 375 | span.aqua { color: aqua; } |
| 376 | span.black { color: black; } |
| 377 | span.blue { color: blue; } |
| 378 | span.fuchsia { color: fuchsia; } |
| 379 | span.gray { color: gray; } |
| 380 | span.green { color: green; } |
| 381 | span.lime { color: lime; } |
| 382 | span.maroon { color: maroon; } |
| 383 | span.navy { color: navy; } |
| 384 | span.olive { color: olive; } |
| 385 | span.purple { color: purple; } |
| 386 | span.red { color: red; } |
| 387 | span.silver { color: silver; } |
| 388 | span.teal { color: teal; } |
| 389 | span.white { color: white; } |
| 390 | span.yellow { color: yellow; } |
| 391 | |
| 392 | span.aqua-background { background: aqua; } |
| 393 | span.black-background { background: black; } |
| 394 | span.blue-background { background: blue; } |
| 395 | span.fuchsia-background { background: fuchsia; } |
| 396 | span.gray-background { background: gray; } |
| 397 | span.green-background { background: green; } |
| 398 | span.lime-background { background: lime; } |
| 399 | span.maroon-background { background: maroon; } |
| 400 | span.navy-background { background: navy; } |
| 401 | span.olive-background { background: olive; } |
| 402 | span.purple-background { background: purple; } |
| 403 | span.red-background { background: red; } |
| 404 | span.silver-background { background: silver; } |
| 405 | span.teal-background { background: teal; } |
| 406 | span.white-background { background: white; } |
| 407 | span.yellow-background { background: yellow; } |
| 408 | |
| 409 | span.big { font-size: 2em; } |
| 410 | span.small { font-size: 0.6em; } |
| 411 | |
| 412 | span.underline { text-decoration: underline; } |
| 413 | span.overline { text-decoration: overline; } |
| 414 | span.line-through { text-decoration: line-through; } |
| 415 | |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 416 | div.unbreakable { page-break-inside: avoid; } |
| 417 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 418 | |
| 419 | /* |
| 420 | * xhtml11 specific |
| 421 | * |
| 422 | * */ |
| 423 | |
| 424 | div.tableblock { |
| 425 | margin-top: 1.0em; |
| 426 | margin-bottom: 1.5em; |
| 427 | } |
| 428 | div.tableblock > table { |
| 429 | border: 3px solid #527bbd; |
| 430 | } |
| 431 | thead, p.table.header { |
| 432 | font-weight: bold; |
| 433 | color: #527bbd; |
| 434 | } |
| 435 | p.table { |
| 436 | margin-top: 0; |
| 437 | } |
| 438 | /* Because the table frame attribute is overriden by CSS in most browsers. */ |
| 439 | div.tableblock > table[frame="void"] { |
| 440 | border-style: none; |
| 441 | } |
| 442 | div.tableblock > table[frame="hsides"] { |
| 443 | border-left-style: none; |
| 444 | border-right-style: none; |
| 445 | } |
| 446 | div.tableblock > table[frame="vsides"] { |
| 447 | border-top-style: none; |
| 448 | border-bottom-style: none; |
| 449 | } |
| 450 | |
| 451 | |
| 452 | /* |
| 453 | * html5 specific |
| 454 | * |
| 455 | * */ |
| 456 | |
| 457 | table.tableblock { |
| 458 | margin-top: 1.0em; |
| 459 | margin-bottom: 1.5em; |
| 460 | } |
| 461 | thead, p.tableblock.header { |
| 462 | font-weight: bold; |
| 463 | color: #527bbd; |
| 464 | } |
| 465 | p.tableblock { |
| 466 | margin-top: 0; |
| 467 | } |
| 468 | table.tableblock { |
| 469 | border-width: 3px; |
| 470 | border-spacing: 0px; |
| 471 | border-style: solid; |
| 472 | border-color: #527bbd; |
| 473 | border-collapse: collapse; |
| 474 | } |
| 475 | th.tableblock, td.tableblock { |
| 476 | border-width: 1px; |
| 477 | padding: 4px; |
| 478 | border-style: solid; |
| 479 | border-color: #527bbd; |
| 480 | } |
| 481 | |
| 482 | table.tableblock.frame-topbot { |
| 483 | border-left-style: hidden; |
| 484 | border-right-style: hidden; |
| 485 | } |
| 486 | table.tableblock.frame-sides { |
| 487 | border-top-style: hidden; |
| 488 | border-bottom-style: hidden; |
| 489 | } |
| 490 | table.tableblock.frame-none { |
| 491 | border-style: hidden; |
| 492 | } |
| 493 | |
| 494 | th.tableblock.halign-left, td.tableblock.halign-left { |
| 495 | text-align: left; |
| 496 | } |
| 497 | th.tableblock.halign-center, td.tableblock.halign-center { |
| 498 | text-align: center; |
| 499 | } |
| 500 | th.tableblock.halign-right, td.tableblock.halign-right { |
| 501 | text-align: right; |
| 502 | } |
| 503 | |
| 504 | th.tableblock.valign-top, td.tableblock.valign-top { |
| 505 | vertical-align: top; |
| 506 | } |
| 507 | th.tableblock.valign-middle, td.tableblock.valign-middle { |
| 508 | vertical-align: middle; |
| 509 | } |
| 510 | th.tableblock.valign-bottom, td.tableblock.valign-bottom { |
| 511 | vertical-align: bottom; |
| 512 | } |
| 513 | |
| 514 | |
| 515 | /* |
| 516 | * manpage specific |
| 517 | * |
| 518 | * */ |
| 519 | |
| 520 | body.manpage h1 { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 521 | padding-top: 0.5em; |
| 522 | padding-bottom: 0.5em; |
| 523 | border-top: 2px solid silver; |
| 524 | border-bottom: 2px solid silver; |
| 525 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 526 | body.manpage h2 { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 527 | border-style: none; |
| 528 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 529 | body.manpage div.sectionbody { |
| 530 | margin-left: 3em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 531 | } |
| 532 | |
| 533 | @media print { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 534 | body.manpage div#toc { display: none; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 535 | } |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 536 | |
| 537 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 538 | </style> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 539 | <script type="text/javascript"> |
| 540 | /*<![CDATA[*/ |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 541 | var asciidoc = { // Namespace. |
| 542 | |
| 543 | ///////////////////////////////////////////////////////////////////// |
| 544 | // Table Of Contents generator |
| 545 | ///////////////////////////////////////////////////////////////////// |
| 546 | |
| 547 | /* Author: Mihai Bazon, September 2002 |
| 548 | * http://students.infoiasi.ro/~mishoo |
| 549 | * |
| 550 | * Table Of Content generator |
| 551 | * Version: 0.4 |
| 552 | * |
| 553 | * Feel free to use this script under the terms of the GNU General Public |
| 554 | * License, as long as you do not remove or alter this notice. |
| 555 | */ |
| 556 | |
| 557 | /* modified by Troy D. Hanson, September 2006. License: GPL */ |
| 558 | /* modified by Stuart Rackham, 2006, 2009. License: GPL */ |
| 559 | |
| 560 | // toclevels = 1..4. |
| 561 | toc: function (toclevels) { |
| 562 | |
| 563 | function getText(el) { |
| 564 | var text = ""; |
| 565 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 566 | if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants. |
| 567 | text += i.data; |
| 568 | else if (i.firstChild != null) |
| 569 | text += getText(i); |
| 570 | } |
| 571 | return text; |
| 572 | } |
| 573 | |
| 574 | function TocEntry(el, text, toclevel) { |
| 575 | this.element = el; |
| 576 | this.text = text; |
| 577 | this.toclevel = toclevel; |
| 578 | } |
| 579 | |
| 580 | function tocEntries(el, toclevels) { |
| 581 | var result = new Array; |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 582 | var re = new RegExp('[hH]([1-'+(toclevels+1)+'])'); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 583 | // Function that scans the DOM tree for header elements (the DOM2 |
| 584 | // nodeIterator API would be a better technique but not supported by all |
| 585 | // browsers). |
| 586 | var iterate = function (el) { |
| 587 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 588 | if (i.nodeType == 1 /* Node.ELEMENT_NODE */) { |
| 589 | var mo = re.exec(i.tagName); |
| 590 | if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") { |
| 591 | result[result.length] = new TocEntry(i, getText(i), mo[1]-1); |
| 592 | } |
| 593 | iterate(i); |
| 594 | } |
| 595 | } |
| 596 | } |
| 597 | iterate(el); |
| 598 | return result; |
| 599 | } |
| 600 | |
| 601 | var toc = document.getElementById("toc"); |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 602 | if (!toc) { |
| 603 | return; |
| 604 | } |
| 605 | |
| 606 | // Delete existing TOC entries in case we're reloading the TOC. |
| 607 | var tocEntriesToRemove = []; |
| 608 | var i; |
| 609 | for (i = 0; i < toc.childNodes.length; i++) { |
| 610 | var entry = toc.childNodes[i]; |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 611 | if (entry.nodeName.toLowerCase() == 'div' |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 612 | && entry.getAttribute("class") |
| 613 | && entry.getAttribute("class").match(/^toclevel/)) |
| 614 | tocEntriesToRemove.push(entry); |
| 615 | } |
| 616 | for (i = 0; i < tocEntriesToRemove.length; i++) { |
| 617 | toc.removeChild(tocEntriesToRemove[i]); |
| 618 | } |
| 619 | |
| 620 | // Rebuild TOC entries. |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 621 | var entries = tocEntries(document.getElementById("content"), toclevels); |
| 622 | for (var i = 0; i < entries.length; ++i) { |
| 623 | var entry = entries[i]; |
| 624 | if (entry.element.id == "") |
| 625 | entry.element.id = "_toc_" + i; |
| 626 | var a = document.createElement("a"); |
| 627 | a.href = "#" + entry.element.id; |
| 628 | a.appendChild(document.createTextNode(entry.text)); |
| 629 | var div = document.createElement("div"); |
| 630 | div.appendChild(a); |
| 631 | div.className = "toclevel" + entry.toclevel; |
| 632 | toc.appendChild(div); |
| 633 | } |
| 634 | if (entries.length == 0) |
| 635 | toc.parentNode.removeChild(toc); |
| 636 | }, |
| 637 | |
| 638 | |
| 639 | ///////////////////////////////////////////////////////////////////// |
| 640 | // Footnotes generator |
| 641 | ///////////////////////////////////////////////////////////////////// |
| 642 | |
| 643 | /* Based on footnote generation code from: |
| 644 | * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html |
| 645 | */ |
| 646 | |
| 647 | footnotes: function () { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 648 | // Delete existing footnote entries in case we're reloading the footnodes. |
| 649 | var i; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 650 | var noteholder = document.getElementById("footnotes"); |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 651 | if (!noteholder) { |
| 652 | return; |
| 653 | } |
| 654 | var entriesToRemove = []; |
| 655 | for (i = 0; i < noteholder.childNodes.length; i++) { |
| 656 | var entry = noteholder.childNodes[i]; |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 657 | if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote") |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 658 | entriesToRemove.push(entry); |
| 659 | } |
| 660 | for (i = 0; i < entriesToRemove.length; i++) { |
| 661 | noteholder.removeChild(entriesToRemove[i]); |
| 662 | } |
| 663 | |
| 664 | // Rebuild footnote entries. |
| 665 | var cont = document.getElementById("content"); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 666 | var spans = cont.getElementsByTagName("span"); |
| 667 | var refs = {}; |
| 668 | var n = 0; |
| 669 | for (i=0; i<spans.length; i++) { |
| 670 | if (spans[i].className == "footnote") { |
| 671 | n++; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 672 | var note = spans[i].getAttribute("data-note"); |
| 673 | if (!note) { |
| 674 | // Use [\s\S] in place of . so multi-line matches work. |
| 675 | // Because JavaScript has no s (dotall) regex flag. |
| 676 | note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1]; |
| 677 | spans[i].innerHTML = |
| 678 | "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n + |
| 679 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 680 | spans[i].setAttribute("data-note", note); |
| 681 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 682 | noteholder.innerHTML += |
| 683 | "<div class='footnote' id='_footnote_" + n + "'>" + |
| 684 | "<a href='#_footnoteref_" + n + "' title='Return to text'>" + |
| 685 | n + "</a>. " + note + "</div>"; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 686 | var id =spans[i].getAttribute("id"); |
| 687 | if (id != null) refs["#"+id] = n; |
| 688 | } |
| 689 | } |
| 690 | if (n == 0) |
| 691 | noteholder.parentNode.removeChild(noteholder); |
| 692 | else { |
| 693 | // Process footnoterefs. |
| 694 | for (i=0; i<spans.length; i++) { |
| 695 | if (spans[i].className == "footnoteref") { |
| 696 | var href = spans[i].getElementsByTagName("a")[0].getAttribute("href"); |
| 697 | href = href.match(/#.*/)[0]; // Because IE return full URL. |
| 698 | n = refs[href]; |
| 699 | spans[i].innerHTML = |
| 700 | "[<a href='#_footnote_" + n + |
| 701 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 702 | } |
| 703 | } |
| 704 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 705 | }, |
| 706 | |
| 707 | install: function(toclevels) { |
| 708 | var timerId; |
| 709 | |
| 710 | function reinstall() { |
| 711 | asciidoc.footnotes(); |
| 712 | if (toclevels) { |
| 713 | asciidoc.toc(toclevels); |
| 714 | } |
| 715 | } |
| 716 | |
| 717 | function reinstallAndRemoveTimer() { |
| 718 | clearInterval(timerId); |
| 719 | reinstall(); |
| 720 | } |
| 721 | |
| 722 | timerId = setInterval(reinstall, 500); |
| 723 | if (document.addEventListener) |
| 724 | document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false); |
| 725 | else |
| 726 | window.onload = reinstallAndRemoveTimer; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 727 | } |
| 728 | |
| 729 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 730 | asciidoc.install(); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 731 | /*]]>*/ |
| 732 | </script> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 733 | </head> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 734 | <body class="manpage"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 735 | <div id="header"> |
| 736 | <h1> |
| 737 | git-pull(1) Manual Page |
| 738 | </h1> |
| 739 | <h2>NAME</h2> |
| 740 | <div class="sectionbody"> |
| 741 | <p>git-pull - |
Junio C Hamano | 8401f14 | 2013-07-12 22:47:46 | [diff] [blame] | 742 | Fetch from and integrate with another repository or a local branch |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 743 | </p> |
| 744 | </div> |
| 745 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 746 | <div id="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 747 | <div class="sect1"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 748 | <h2 id="_synopsis">SYNOPSIS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 749 | <div class="sectionbody"> |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 750 | <div class="verseblock"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 751 | <pre class="content"><em>git pull</em> [options] [<repository> [<refspec>…]]</pre> |
| 752 | <div class="attribution"> |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 753 | </div></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 754 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 755 | </div> |
| 756 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 757 | <h2 id="_description">DESCRIPTION</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 758 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 759 | <div class="paragraph"><p>Incorporates changes from a remote repository into the current |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 760 | branch. In its default mode, <code>git pull</code> is shorthand for |
| 761 | <code>git fetch</code> followed by <code>git merge FETCH_HEAD</code>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 762 | <div class="paragraph"><p>More precisely, <em>git pull</em> runs <em>git fetch</em> with the given |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 763 | parameters and calls <em>git merge</em> to merge the retrieved branch |
| 764 | heads into the current branch. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 765 | With <code>--rebase</code>, it runs <em>git rebase</em> instead of <em>git merge</em>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 766 | <div class="paragraph"><p><repository> should be the name of a remote repository as |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 767 | passed to <a href="git-fetch.html">git-fetch(1)</a>. <refspec> can name an |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 768 | arbitrary remote ref (for example, the name of a tag) or even |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 769 | a collection of refs with corresponding remote-tracking branches |
Junio C Hamano | 2e6ded8 | 2010-12-05 06:20:48 | [diff] [blame] | 770 | (e.g., refs/heads/*:refs/remotes/origin/*), |
| 771 | but usually it is the name of a branch in the remote repository.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 772 | <div class="paragraph"><p>Default values for <repository> and <branch> are read from the |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 773 | "remote" and "merge" configuration for the current branch |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 774 | as set by <a href="git-branch.html">git-branch(1)</a> <code>--track</code>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 775 | <div class="paragraph"><p>Assume the following history exists and the current branch is |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 776 | "<code>master</code>":</p></div> |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 777 | <div class="listingblock"> |
| 778 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 779 | <pre><code> A---B---C master on origin |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 780 | / |
Junio C Hamano | 92fb952 | 2013-11-06 23:55:19 | [diff] [blame] | 781 | D---E---F---G master |
| 782 | ^ |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 783 | origin/master in your repository</code></pre> |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 784 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 785 | <div class="paragraph"><p>Then "<code>git pull</code>" will fetch and replay the changes from the remote |
| 786 | <code>master</code> branch since it diverged from the local <code>master</code> (i.e., <code>E</code>) |
| 787 | until its current commit (<code>C</code>) on top of <code>master</code> and record the |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 788 | result in a new commit along with the names of the two parent commits |
| 789 | and a log message from the user describing the changes.</p></div> |
| 790 | <div class="listingblock"> |
| 791 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 792 | <pre><code> A---B---C origin/master |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 793 | / \ |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 794 | D---E---F---G---H master</code></pre> |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 795 | </div></div> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 796 | <div class="paragraph"><p>See <a href="git-merge.html">git-merge(1)</a> for details, including how conflicts |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 797 | are presented and handled.</p></div> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 798 | <div class="paragraph"><p>In Git 1.7.0 or later, to cancel a conflicting merge, use |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 799 | <code>git reset --merge</code>. <strong>Warning</strong>: In older versions of Git, running <em>git pull</em> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 800 | with uncommitted changes is discouraged: while possible, it leaves you |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 801 | in a state that may be hard to back out of in the case of a conflict.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 802 | <div class="paragraph"><p>If any of the remote changes overlap with local uncommitted changes, |
Junio C Hamano | b5a296f | 2010-08-13 02:46:36 | [diff] [blame] | 803 | the merge will be automatically cancelled and the work tree untouched. |
| 804 | It is generally best to get any local changes in working order before |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 805 | pulling or stash them away with <a href="git-stash.html">git-stash(1)</a>.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 806 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 807 | </div> |
| 808 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 809 | <h2 id="_options">OPTIONS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 810 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 811 | <div class="dlist"><dl> |
| 812 | <dt class="hdlist1"> |
Junio C Hamano | ea90ab3 | 2010-03-15 20:32:55 | [diff] [blame] | 813 | -q |
| 814 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 815 | <dt class="hdlist1"> |
Junio C Hamano | ea90ab3 | 2010-03-15 20:32:55 | [diff] [blame] | 816 | --quiet |
| 817 | </dt> |
| 818 | <dd> |
| 819 | <p> |
| 820 | This is passed to both underlying git-fetch to squelch reporting of |
| 821 | during transfer, and underlying git-merge to squelch output during |
| 822 | merging. |
| 823 | </p> |
| 824 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 825 | <dt class="hdlist1"> |
Junio C Hamano | ea90ab3 | 2010-03-15 20:32:55 | [diff] [blame] | 826 | -v |
| 827 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 828 | <dt class="hdlist1"> |
Junio C Hamano | ea90ab3 | 2010-03-15 20:32:55 | [diff] [blame] | 829 | --verbose |
| 830 | </dt> |
| 831 | <dd> |
| 832 | <p> |
| 833 | Pass --verbose to git-fetch and git-merge. |
| 834 | </p> |
| 835 | </dd> |
Junio C Hamano | e611683 | 2011-02-08 00:49:45 | [diff] [blame] | 836 | <dt class="hdlist1"> |
Junio C Hamano | 5cd1518 | 2011-04-05 00:21:10 | [diff] [blame] | 837 | --[no-]recurse-submodules[=yes|on-demand|no] |
Junio C Hamano | e611683 | 2011-02-08 00:49:45 | [diff] [blame] | 838 | </dt> |
| 839 | <dd> |
| 840 | <p> |
| 841 | This option controls if new commits of all populated submodules should |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 842 | be fetched too (see <a href="git-config.html">git-config(1)</a> and <a href="gitmodules.html">gitmodules(5)</a>). |
Junio C Hamano | e611683 | 2011-02-08 00:49:45 | [diff] [blame] | 843 | That might be necessary to get the data needed for merging submodule |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 844 | commits, a feature Git learned in 1.7.3. Notice that the result of a |
Junio C Hamano | e611683 | 2011-02-08 00:49:45 | [diff] [blame] | 845 | merge will not be checked out in the submodule, "git submodule update" |
| 846 | has to be called afterwards to bring the work tree up to date with the |
| 847 | merge result. |
| 848 | </p> |
| 849 | </dd> |
Junio C Hamano | ea90ab3 | 2010-03-15 20:32:55 | [diff] [blame] | 850 | </dl></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 851 | <div class="sect2"> |
| 852 | <h3 id="_options_related_to_merging">Options related to merging</h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 853 | <div class="dlist"><dl> |
| 854 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 855 | --commit |
| 856 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 857 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 858 | --no-commit |
| 859 | </dt> |
| 860 | <dd> |
| 861 | <p> |
| 862 | Perform the merge and commit the result. This option can |
| 863 | be used to override --no-commit. |
| 864 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 865 | <div class="paragraph"><p>With --no-commit perform the merge but pretend the merge |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 866 | failed and do not autocommit, to give the user a chance to |
| 867 | inspect and further tweak the merge result before committing.</p></div> |
| 868 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 869 | <dt class="hdlist1"> |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 870 | --edit |
| 871 | </dt> |
| 872 | <dt class="hdlist1"> |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 873 | -e |
| 874 | </dt> |
| 875 | <dt class="hdlist1"> |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 876 | --no-edit |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 877 | </dt> |
| 878 | <dd> |
Junio C Hamano | 92887a3 | 2011-12-07 00:26:29 | [diff] [blame] | 879 | <p> |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 880 | Invoke an editor before committing successful mechanical merge to |
| 881 | further edit the auto-generated merge message, so that the user |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 882 | can explain and justify the merge. The <code>--no-edit</code> option can be |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 883 | used to accept the auto-generated message (this is generally |
Junio C Hamano | c5bd79e | 2014-01-27 21:31:26 | [diff] [blame] | 884 | discouraged). |
Junio C Hamano | 92887a3 | 2011-12-07 00:26:29 | [diff] [blame] | 885 | </p> |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 886 | <div class="paragraph"><p>Older scripts may depend on the historical behaviour of not allowing the |
| 887 | user to edit the merge log message. They will see an editor opened when |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 888 | they run <code>git merge</code>. To make it easier to adjust such scripts to the |
| 889 | updated behaviour, the environment variable <code>GIT_MERGE_AUTOEDIT</code> can be |
| 890 | set to <code>no</code> at the beginning of them.</p></div> |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 891 | </dd> |
| 892 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 893 | --ff |
| 894 | </dt> |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 895 | <dd> |
| 896 | <p> |
| 897 | When the merge resolves as a fast-forward, only update the branch |
| 898 | pointer, without creating a merge commit. This is the default |
| 899 | behavior. |
| 900 | </p> |
| 901 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 902 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 903 | --no-ff |
| 904 | </dt> |
| 905 | <dd> |
| 906 | <p> |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 907 | Create a merge commit even when the merge resolves as a |
Junio C Hamano | 778a341 | 2013-03-28 23:24:30 | [diff] [blame] | 908 | fast-forward. This is the default behaviour when merging an |
| 909 | annotated (and possibly signed) tag. |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 910 | </p> |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 911 | </dd> |
| 912 | <dt class="hdlist1"> |
| 913 | --ff-only |
| 914 | </dt> |
| 915 | <dd> |
| 916 | <p> |
| 917 | Refuse to merge and exit with a non-zero status unless the |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 918 | current <code>HEAD</code> is already up-to-date or the merge can be |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 919 | resolved as a fast-forward. |
| 920 | </p> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 921 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 922 | <dt class="hdlist1"> |
Junio C Hamano | 3b4609d | 2010-09-30 00:04:34 | [diff] [blame] | 923 | --log[=<n>] |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 924 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 925 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 926 | --no-log |
| 927 | </dt> |
| 928 | <dd> |
| 929 | <p> |
| 930 | In addition to branch names, populate the log message with |
Junio C Hamano | 3b4609d | 2010-09-30 00:04:34 | [diff] [blame] | 931 | one-line descriptions from at most <n> actual commits that are being |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 932 | merged. See also <a href="git-fmt-merge-msg.html">git-fmt-merge-msg(1)</a>. |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 933 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 934 | <div class="paragraph"><p>With --no-log do not list one-line descriptions from the |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 935 | actual commits being merged.</p></div> |
| 936 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 937 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 938 | --stat |
| 939 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 940 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 941 | -n |
| 942 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 943 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 944 | --no-stat |
| 945 | </dt> |
| 946 | <dd> |
| 947 | <p> |
| 948 | Show a diffstat at the end of the merge. The diffstat is also |
| 949 | controlled by the configuration option merge.stat. |
| 950 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 951 | <div class="paragraph"><p>With -n or --no-stat do not show a diffstat at the end of the |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 952 | merge.</p></div> |
| 953 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 954 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 955 | --squash |
| 956 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 957 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 958 | --no-squash |
| 959 | </dt> |
| 960 | <dd> |
| 961 | <p> |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 962 | Produce the working tree and index state as if a real merge |
| 963 | happened (except for the merge information), but do not actually |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 964 | make a commit, move the <code>HEAD</code>, or record <code>$GIT_DIR/MERGE_HEAD</code> |
| 965 | (to cause the next <code>git commit</code> command to create a merge |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 966 | commit). This allows you to create a single commit on top of |
| 967 | the current branch whose effect is the same as merging another |
| 968 | branch (or more in case of an octopus). |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 969 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 970 | <div class="paragraph"><p>With --no-squash perform the merge and commit the result. This |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 971 | option can be used to override --squash.</p></div> |
| 972 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 973 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 974 | -s <strategy> |
| 975 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 976 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 977 | --strategy=<strategy> |
| 978 | </dt> |
| 979 | <dd> |
| 980 | <p> |
| 981 | Use the given merge strategy; can be supplied more than |
| 982 | once to specify them in the order they should be tried. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 983 | If there is no <code>-s</code> option, a built-in list of strategies |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 984 | is used instead (<em>git merge-recursive</em> when merging a single |
| 985 | head, <em>git merge-octopus</em> otherwise). |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 986 | </p> |
| 987 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 988 | <dt class="hdlist1"> |
Junio C Hamano | b04bb3f | 2010-04-14 14:07:36 | [diff] [blame] | 989 | -X <option> |
| 990 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 991 | <dt class="hdlist1"> |
Junio C Hamano | b04bb3f | 2010-04-14 14:07:36 | [diff] [blame] | 992 | --strategy-option=<option> |
| 993 | </dt> |
| 994 | <dd> |
| 995 | <p> |
| 996 | Pass merge strategy specific option through to the merge |
| 997 | strategy. |
| 998 | </p> |
| 999 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1000 | <dt class="hdlist1"> |
Junio C Hamano | edf80bd | 2013-04-05 22:14:36 | [diff] [blame] | 1001 | --verify-signatures |
| 1002 | </dt> |
| 1003 | <dt class="hdlist1"> |
| 1004 | --no-verify-signatures |
| 1005 | </dt> |
| 1006 | <dd> |
| 1007 | <p> |
| 1008 | Verify that the commits being merged have good and trusted GPG signatures |
| 1009 | and abort the merge in case they do not. |
| 1010 | </p> |
| 1011 | </dd> |
| 1012 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1013 | --summary |
| 1014 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1015 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1016 | --no-summary |
| 1017 | </dt> |
| 1018 | <dd> |
| 1019 | <p> |
| 1020 | Synonyms to --stat and --no-stat; these are deprecated and will be |
| 1021 | removed in the future. |
| 1022 | </p> |
| 1023 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1024 | <dt class="hdlist1"> |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1025 | -r |
| 1026 | </dt> |
| 1027 | <dt class="hdlist1"> |
Junio C Hamano | 289d7e8 | 2016-01-27 00:20:38 | [diff] [blame] | 1028 | --rebase[=false|true|preserve|interactive] |
Junio C Hamano | 6d559fc | 2008-02-20 10:44:26 | [diff] [blame] | 1029 | </dt> |
| 1030 | <dd> |
| 1031 | <p> |
Junio C Hamano | cf4a174 | 2013-09-11 22:57:50 | [diff] [blame] | 1032 | When true, rebase the current branch on top of the upstream |
| 1033 | branch after fetching. If there is a remote-tracking branch |
| 1034 | corresponding to the upstream branch and the upstream branch |
| 1035 | was rebased since last fetched, the rebase uses that information |
| 1036 | to avoid rebasing non-local changes. |
Junio C Hamano | 6d559fc | 2008-02-20 10:44:26 | [diff] [blame] | 1037 | </p> |
Junio C Hamano | ba423bd | 2015-03-28 18:18:17 | [diff] [blame] | 1038 | <div class="paragraph"><p>When set to preserve, rebase with the <code>--preserve-merges</code> option passed |
| 1039 | to <code>git rebase</code> so that locally created merge commits will not be flattened.</p></div> |
Junio C Hamano | cf4a174 | 2013-09-11 22:57:50 | [diff] [blame] | 1040 | <div class="paragraph"><p>When false, merge the current branch into the upstream branch.</p></div> |
Junio C Hamano | 289d7e8 | 2016-01-27 00:20:38 | [diff] [blame] | 1041 | <div class="paragraph"><p>When <code>interactive</code>, enable the interactive mode of rebase.</p></div> |
Junio C Hamano | 322c624 | 2015-03-23 21:32:46 | [diff] [blame] | 1042 | <div class="paragraph"><p>See <code>pull.rebase</code>, <code>branch.<name>.rebase</code> and <code>branch.autoSetupRebase</code> in |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1043 | <a href="git-config.html">git-config(1)</a> if you want to make <code>git pull</code> always use |
| 1044 | <code>--rebase</code> instead of merging.</p></div> |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 1045 | <div class="admonitionblock"> |
| 1046 | <table><tr> |
| 1047 | <td class="icon"> |
| 1048 | <div class="title">Note</div> |
| 1049 | </td> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1050 | <td class="content">This is a potentially <em>dangerous</em> mode of operation. |
Junio C Hamano | 6d559fc | 2008-02-20 10:44:26 | [diff] [blame] | 1051 | It rewrites history, which does not bode well when you |
| 1052 | published that history already. Do <strong>not</strong> use this option |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1053 | unless you have read <a href="git-rebase.html">git-rebase(1)</a> carefully.</td> |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 1054 | </tr></table> |
| 1055 | </div> |
Junio C Hamano | 6d559fc | 2008-02-20 10:44:26 | [diff] [blame] | 1056 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1057 | <dt class="hdlist1"> |
Junio C Hamano | 6d559fc | 2008-02-20 10:44:26 | [diff] [blame] | 1058 | --no-rebase |
| 1059 | </dt> |
| 1060 | <dd> |
| 1061 | <p> |
| 1062 | Override earlier --rebase. |
| 1063 | </p> |
| 1064 | </dd> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1065 | </dl></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1066 | </div> |
| 1067 | <div class="sect2"> |
| 1068 | <h3 id="_options_related_to_fetching">Options related to fetching</h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1069 | <div class="dlist"><dl> |
| 1070 | <dt class="hdlist1"> |
Junio C Hamano | 9df0c66 | 2009-11-23 11:09:27 | [diff] [blame] | 1071 | --all |
| 1072 | </dt> |
| 1073 | <dd> |
| 1074 | <p> |
| 1075 | Fetch all remotes. |
| 1076 | </p> |
| 1077 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1078 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1079 | -a |
| 1080 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1081 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1082 | --append |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1083 | </dt> |
| 1084 | <dd> |
| 1085 | <p> |
| 1086 | Append ref names and object names of fetched refs to the |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1087 | existing contents of <code>.git/FETCH_HEAD</code>. Without this |
| 1088 | option old data in <code>.git/FETCH_HEAD</code> will be overwritten. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1089 | </p> |
| 1090 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1091 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1092 | --depth=<depth> |
Junio C Hamano | e663a7a | 2006-01-25 12:37:28 | [diff] [blame] | 1093 | </dt> |
Junio C Hamano | e663a7a | 2006-01-25 12:37:28 | [diff] [blame] | 1094 | <dd> |
| 1095 | <p> |
Junio C Hamano | 4e6ba27 | 2016-01-20 23:23:19 | [diff] [blame] | 1096 | Limit fetching to the specified number of commits from the tip of |
| 1097 | each remote branch history. If fetching to a <em>shallow</em> repository |
| 1098 | created by <code>git clone</code> with <code>--depth=<depth></code> option (see |
| 1099 | <a href="git-clone.html">git-clone(1)</a>), deepen or shorten the history to the specified |
| 1100 | number of commits. Tags for the deepened commits are not fetched. |
Junio C Hamano | e663a7a | 2006-01-25 12:37:28 | [diff] [blame] | 1101 | </p> |
| 1102 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1103 | <dt class="hdlist1"> |
Junio C Hamano | 0d1122e | 2013-02-01 21:37:02 | [diff] [blame] | 1104 | --unshallow |
| 1105 | </dt> |
| 1106 | <dd> |
| 1107 | <p> |
Junio C Hamano | 61525f9 | 2014-01-17 22:46:49 | [diff] [blame] | 1108 | If the source repository is complete, convert a shallow |
| 1109 | repository to a complete one, removing all the limitations |
| 1110 | imposed by shallow repositories. |
| 1111 | </p> |
| 1112 | <div class="paragraph"><p>If the source repository is shallow, fetch as much as possible so that |
| 1113 | the current repository has the same history as the source repository.</p></div> |
| 1114 | </dd> |
| 1115 | <dt class="hdlist1"> |
| 1116 | --update-shallow |
| 1117 | </dt> |
| 1118 | <dd> |
| 1119 | <p> |
| 1120 | By default when fetching from a shallow repository, |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1121 | <code>git fetch</code> refuses refs that require updating |
Junio C Hamano | 61525f9 | 2014-01-17 22:46:49 | [diff] [blame] | 1122 | .git/shallow. This option updates .git/shallow and accept such |
| 1123 | refs. |
Junio C Hamano | 0d1122e | 2013-02-01 21:37:02 | [diff] [blame] | 1124 | </p> |
| 1125 | </dd> |
| 1126 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1127 | -f |
| 1128 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1129 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1130 | --force |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1131 | </dt> |
| 1132 | <dd> |
| 1133 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1134 | When <em>git fetch</em> is used with <code><rbranch>:<lbranch></code> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1135 | refspec, it refuses to update the local branch |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1136 | <code><lbranch></code> unless the remote branch <code><rbranch></code> it |
| 1137 | fetches is a descendant of <code><lbranch></code>. This option |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1138 | overrides that check. |
| 1139 | </p> |
| 1140 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1141 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1142 | -k |
| 1143 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1144 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1145 | --keep |
| 1146 | </dt> |
| 1147 | <dd> |
| 1148 | <p> |
| 1149 | Keep downloaded pack. |
| 1150 | </p> |
| 1151 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1152 | <dt class="hdlist1"> |
Junio C Hamano | f7bb669 | 2008-01-27 08:23:46 | [diff] [blame] | 1153 | --no-tags |
Junio C Hamano | 4d04a40 | 2006-01-09 00:53:28 | [diff] [blame] | 1154 | </dt> |
| 1155 | <dd> |
| 1156 | <p> |
Junio C Hamano | f7bb669 | 2008-01-27 08:23:46 | [diff] [blame] | 1157 | By default, tags that point at objects that are downloaded |
| 1158 | from the remote repository are fetched and stored locally. |
Junio C Hamano | 075ae87 | 2010-09-01 18:43:07 | [diff] [blame] | 1159 | This option disables this automatic tag following. The default |
Junio C Hamano | 322c624 | 2015-03-23 21:32:46 | [diff] [blame] | 1160 | behavior for a remote may be specified with the remote.<name>.tagOpt |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1161 | setting. See <a href="git-config.html">git-config(1)</a>. |
Junio C Hamano | 4d04a40 | 2006-01-09 00:53:28 | [diff] [blame] | 1162 | </p> |
| 1163 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1164 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1165 | -u |
| 1166 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1167 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1168 | --update-head-ok |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1169 | </dt> |
| 1170 | <dd> |
| 1171 | <p> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1172 | By default <em>git fetch</em> refuses to update the head which |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1173 | corresponds to the current branch. This flag disables the |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1174 | check. This is purely for the internal use for <em>git pull</em> |
| 1175 | to communicate with <em>git fetch</em>, and unless you are |
Junio C Hamano | b288d9e | 2007-01-02 00:04:15 | [diff] [blame] | 1176 | implementing your own Porcelain you are not supposed to |
| 1177 | use it. |
| 1178 | </p> |
| 1179 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1180 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1181 | --upload-pack <upload-pack> |
Junio C Hamano | b288d9e | 2007-01-02 00:04:15 | [diff] [blame] | 1182 | </dt> |
| 1183 | <dd> |
| 1184 | <p> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1185 | When given, and the repository to fetch from is handled |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1186 | by <em>git fetch-pack</em>, <em>--exec=<upload-pack></em> is passed to |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1187 | the command to specify non-default path for the command |
| 1188 | run on the other end. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1189 | </p> |
| 1190 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1191 | <dt class="hdlist1"> |
Junio C Hamano | ea90ab3 | 2010-03-15 20:32:55 | [diff] [blame] | 1192 | --progress |
| 1193 | </dt> |
| 1194 | <dd> |
| 1195 | <p> |
| 1196 | Progress status is reported on the standard error stream |
| 1197 | by default when it is attached to a terminal, unless -q |
| 1198 | is specified. This flag forces progress status even if the |
| 1199 | standard error stream is not directed to a terminal. |
| 1200 | </p> |
| 1201 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1202 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1203 | <repository> |
| 1204 | </dt> |
| 1205 | <dd> |
| 1206 | <p> |
| 1207 | The "remote" repository that is the source of a fetch |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1208 | or pull operation. This parameter can be either a URL |
| 1209 | (see the section <a href="#URLS">GIT URLS</a> below) or the name |
| 1210 | of a remote (see the section <a href="#REMOTES">REMOTES</a> below). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1211 | </p> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1212 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1213 | <dt class="hdlist1"> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1214 | <refspec> |
| 1215 | </dt> |
| 1216 | <dd> |
| 1217 | <p> |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1218 | Specifies which refs to fetch and which local refs to update. |
| 1219 | When no <refspec>s appear on the command line, the refs to fetch |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1220 | are read from <code>remote.<repository>.fetch</code> variables instead |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1221 | (see <a href="git-fetch.html">git-fetch(1)</a>). |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1222 | </p> |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1223 | <div class="paragraph"><p>The format of a <refspec> parameter is an optional plus |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1224 | <code>+</code>, followed by the source ref <src>, followed |
| 1225 | by a colon <code>:</code>, followed by the destination ref <dst>. |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1226 | The colon can be omitted when <dst> is empty.</p></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1227 | <div class="paragraph"><p><code>tag <tag></code> means the same as <code>refs/tags/<tag>:refs/tags/<tag></code>; |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1228 | it requests fetching everything up to the given tag.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1229 | <div class="paragraph"><p>The remote ref that matches <src> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1230 | is fetched, and if <dst> is not empty string, the local |
Junio C Hamano | 3f680f3 | 2009-11-16 02:10:54 | [diff] [blame] | 1231 | ref that matches it is fast-forwarded using <src>. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1232 | If the optional plus <code>+</code> is used, the local ref |
Junio C Hamano | 3f680f3 | 2009-11-16 02:10:54 | [diff] [blame] | 1233 | is updated even if it does not result in a fast-forward |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1234 | update.</p></div> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1235 | <div class="admonitionblock"> |
| 1236 | <table><tr> |
| 1237 | <td class="icon"> |
| 1238 | <div class="title">Note</div> |
| 1239 | </td> |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1240 | <td class="content">When the remote branch you want to fetch is known to |
| 1241 | be rewound and rebased regularly, it is expected that |
| 1242 | its new tip will not be descendant of its previous tip |
| 1243 | (as stored in your remote-tracking branch the last time |
| 1244 | you fetched). You would want |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1245 | to use the <code>+</code> sign to indicate non-fast-forward updates |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1246 | will be needed for such branches. There is no way to |
| 1247 | determine or declare that a branch will be made available |
| 1248 | in a repository with this behavior; the pulling user simply |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1249 | must know this is the expected usage pattern for a branch.</td> |
| 1250 | </tr></table> |
| 1251 | </div> |
| 1252 | <div class="admonitionblock"> |
| 1253 | <table><tr> |
| 1254 | <td class="icon"> |
| 1255 | <div class="title">Note</div> |
| 1256 | </td> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1257 | <td class="content">There is a difference between listing multiple <refspec> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1258 | directly on <em>git pull</em> command line and having multiple |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1259 | <code>remote.<repository>.fetch</code> entries in your configuration |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1260 | for a <repository> and running a |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1261 | <em>git pull</em> command without any explicit <refspec> parameters. |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1262 | <refspec>s listed explicitly on the command line are always |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1263 | merged into the current branch after fetching. In other words, |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1264 | if you list more than one remote ref, <em>git pull</em> will create |
| 1265 | an Octopus merge. On the other hand, if you do not list any |
| 1266 | explicit <refspec> parameter on the command line, <em>git pull</em> |
| 1267 | will fetch all the <refspec>s it finds in the |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1268 | <code>remote.<repository>.fetch</code> configuration and merge |
Junio C Hamano | 45f804f | 2014-06-20 22:24:49 | [diff] [blame] | 1269 | only the first <refspec> found into the current branch. |
| 1270 | This is because making an |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1271 | Octopus from remote refs is rarely done, while keeping track |
| 1272 | of multiple remote heads in one-go by fetching more than one |
| 1273 | is often useful.</td> |
| 1274 | </tr></table> |
| 1275 | </div> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1276 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1277 | </dl></div> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1278 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1279 | </div> |
| 1280 | </div> |
| 1281 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1282 | <h2 id="_git_urls_a_id_urls_a">GIT URLS<a id="URLS"></a></h2> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1283 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1284 | <div class="paragraph"><p>In general, URLs contain information about the transport protocol, the |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1285 | address of the remote server, and the path to the repository. |
| 1286 | Depending on the transport protocol, some of this information may be |
| 1287 | absent.</p></div> |
Junio C Hamano | 6631a09 | 2012-10-10 22:50:57 | [diff] [blame] | 1288 | <div class="paragraph"><p>Git supports ssh, git, http, and https protocols (in addition, ftp, |
| 1289 | and ftps can be used for fetching and rsync can be used for fetching |
| 1290 | and pushing, but these are inefficient and deprecated; do not use |
| 1291 | them).</p></div> |
Junio C Hamano | a195230 | 2013-07-01 21:31:18 | [diff] [blame] | 1292 | <div class="paragraph"><p>The native transport (i.e. git:// URL) does no authentication and |
| 1293 | should be used with caution on unsecured networks.</p></div> |
Junio C Hamano | 6631a09 | 2012-10-10 22:50:57 | [diff] [blame] | 1294 | <div class="paragraph"><p>The following syntaxes may be used with them:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1295 | <div class="ulist"><ul> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1296 | <li> |
| 1297 | <p> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1298 | ssh://[user@]host.xz[:port]/path/to/repo.git/ |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1299 | </p> |
| 1300 | </li> |
| 1301 | <li> |
| 1302 | <p> |
Junio C Hamano | a3bb6eb | 2009-02-05 01:26:33 | [diff] [blame] | 1303 | git://host.xz[:port]/path/to/repo.git/ |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1304 | </p> |
| 1305 | </li> |
| 1306 | <li> |
| 1307 | <p> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1308 | http[s]://host.xz[:port]/path/to/repo.git/ |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1309 | </p> |
| 1310 | </li> |
| 1311 | <li> |
| 1312 | <p> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1313 | ftp[s]://host.xz[:port]/path/to/repo.git/ |
Junio C Hamano | dbb6459 | 2007-09-01 11:17:39 | [diff] [blame] | 1314 | </p> |
| 1315 | </li> |
| 1316 | <li> |
| 1317 | <p> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1318 | rsync://host.xz/path/to/repo.git/ |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1319 | </p> |
| 1320 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1321 | </ul></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1322 | <div class="paragraph"><p>An alternative scp-like syntax may also be used with the ssh protocol:</p></div> |
| 1323 | <div class="ulist"><ul> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1324 | <li> |
| 1325 | <p> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1326 | [user@]host.xz:path/to/repo.git/ |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1327 | </p> |
| 1328 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1329 | </ul></div> |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 1330 | <div class="paragraph"><p>This syntax is only recognized if there are no slashes before the |
| 1331 | first colon. This helps differentiate a local path that contains a |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1332 | colon. For example the local path <code>foo:bar</code> could be specified as an |
| 1333 | absolute path or <code>./foo:bar</code> to avoid being misinterpreted as an ssh |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 1334 | url.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1335 | <div class="paragraph"><p>The ssh and git protocols additionally support ~username expansion:</p></div> |
| 1336 | <div class="ulist"><ul> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1337 | <li> |
| 1338 | <p> |
| 1339 | ssh://[user@]host.xz[:port]/~[user]/path/to/repo.git/ |
| 1340 | </p> |
| 1341 | </li> |
| 1342 | <li> |
| 1343 | <p> |
| 1344 | git://host.xz[:port]/~[user]/path/to/repo.git/ |
| 1345 | </p> |
| 1346 | </li> |
| 1347 | <li> |
| 1348 | <p> |
| 1349 | [user@]host.xz:/~[user]/path/to/repo.git/ |
| 1350 | </p> |
| 1351 | </li> |
| 1352 | </ul></div> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1353 | <div class="paragraph"><p>For local repositories, also supported by Git natively, the following |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1354 | syntaxes may be used:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1355 | <div class="ulist"><ul> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1356 | <li> |
| 1357 | <p> |
| 1358 | /path/to/repo.git/ |
| 1359 | </p> |
| 1360 | </li> |
Junio C Hamano | b1d6e88 | 2007-08-11 08:30:16 | [diff] [blame] | 1361 | <li> |
| 1362 | <p> |
Junio C Hamano | dc8f8de | 2013-06-05 22:58:07 | [diff] [blame] | 1363 | file:///path/to/repo.git/ |
Junio C Hamano | b1d6e88 | 2007-08-11 08:30:16 | [diff] [blame] | 1364 | </p> |
| 1365 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1366 | </ul></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1367 | <div class="paragraph"><p>These two syntaxes are mostly equivalent, except when cloning, when |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1368 | the former implies --local option. See <a href="git-clone.html">git-clone(1)</a> for |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1369 | details.</p></div> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1370 | <div class="paragraph"><p>When Git doesn’t know how to handle a certain transport protocol, it |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1371 | attempts to use the <em>remote-<transport></em> remote helper, if one |
| 1372 | exists. To explicitly request a remote helper, the following syntax |
| 1373 | may be used:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1374 | <div class="ulist"><ul> |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1375 | <li> |
| 1376 | <p> |
| 1377 | <transport>::<address> |
| 1378 | </p> |
| 1379 | </li> |
| 1380 | </ul></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1381 | <div class="paragraph"><p>where <address> may be a path, a server and path, or an arbitrary |
Junio C Hamano | 0c053e8 | 2010-04-19 06:46:34 | [diff] [blame] | 1382 | URL-like string recognized by the specific remote helper being |
Junio C Hamano | b5e079f | 2013-02-08 00:02:52 | [diff] [blame] | 1383 | invoked. See <a href="gitremote-helpers.html">gitremote-helpers(1)</a> for details.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1384 | <div class="paragraph"><p>If there are a large number of similarly-named remote repositories and |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1385 | you want to use a different format for them (such that the URLs you |
| 1386 | use will be rewritten into URLs that work), you can create a |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1387 | configuration section of the form:</p></div> |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1388 | <div class="listingblock"> |
| 1389 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1390 | <pre><code> [url "<actual url base>"] |
| 1391 | insteadOf = <other url base></code></pre> |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1392 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1393 | <div class="paragraph"><p>For example, with this:</p></div> |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1394 | <div class="listingblock"> |
| 1395 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1396 | <pre><code> [url "git://git.host.xz/"] |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1397 | insteadOf = host.xz:/path/to/ |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1398 | insteadOf = work:</code></pre> |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1399 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1400 | <div class="paragraph"><p>a URL like "work:repo.git" or like "host.xz:/path/to/repo.git" will be |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1401 | rewritten in any context that takes a URL to be "git://git.host.xz/repo.git".</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1402 | <div class="paragraph"><p>If you want to rewrite URLs for push only, you can create a |
Junio C Hamano | 7df6dcf | 2009-09-13 09:51:17 | [diff] [blame] | 1403 | configuration section of the form:</p></div> |
| 1404 | <div class="listingblock"> |
| 1405 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1406 | <pre><code> [url "<actual url base>"] |
| 1407 | pushInsteadOf = <other url base></code></pre> |
Junio C Hamano | 7df6dcf | 2009-09-13 09:51:17 | [diff] [blame] | 1408 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1409 | <div class="paragraph"><p>For example, with this:</p></div> |
Junio C Hamano | 7df6dcf | 2009-09-13 09:51:17 | [diff] [blame] | 1410 | <div class="listingblock"> |
| 1411 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1412 | <pre><code> [url "ssh://example.org/"] |
| 1413 | pushInsteadOf = git://example.org/</code></pre> |
Junio C Hamano | 7df6dcf | 2009-09-13 09:51:17 | [diff] [blame] | 1414 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1415 | <div class="paragraph"><p>a URL like "git://example.org/path/to/repo.git" will be rewritten to |
Junio C Hamano | 7df6dcf | 2009-09-13 09:51:17 | [diff] [blame] | 1416 | "ssh://example.org/path/to/repo.git" for pushes, but pulls will still |
| 1417 | use the original URL.</p></div> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1418 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1419 | </div> |
| 1420 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1421 | <h2 id="_remotes_a_id_remotes_a">REMOTES<a id="REMOTES"></a></h2> |
Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 1422 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1423 | <div class="paragraph"><p>The name of one of the following can be used instead |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1424 | of a URL as <code><repository></code> argument:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1425 | <div class="ulist"><ul> |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1426 | <li> |
| 1427 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1428 | a remote in the Git configuration file: <code>$GIT_DIR/config</code>, |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1429 | </p> |
| 1430 | </li> |
| 1431 | <li> |
| 1432 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1433 | a file in the <code>$GIT_DIR/remotes</code> directory, or |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1434 | </p> |
| 1435 | </li> |
| 1436 | <li> |
| 1437 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1438 | a file in the <code>$GIT_DIR/branches</code> directory. |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1439 | </p> |
| 1440 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1441 | </ul></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1442 | <div class="paragraph"><p>All of these also allow you to omit the refspec from the command line |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1443 | because they each contain a refspec which git will use by default.</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1444 | <div class="sect2"> |
| 1445 | <h3 id="_named_remote_in_configuration_file">Named remote in configuration file</h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1446 | <div class="paragraph"><p>You can choose to provide the name of a remote which you had previously |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1447 | configured using <a href="git-remote.html">git-remote(1)</a>, <a href="git-config.html">git-config(1)</a> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1448 | or even by a manual edit to the <code>$GIT_DIR/config</code> file. The URL of |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1449 | this remote will be used to access the repository. The refspec |
| 1450 | of this remote will be used by default when you do |
| 1451 | not provide a refspec on the command line. The entry in the |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1452 | config file would appear like this:</p></div> |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1453 | <div class="listingblock"> |
| 1454 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1455 | <pre><code> [remote "<name>"] |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1456 | url = <url> |
Junio C Hamano | 0e88f3e | 2009-06-21 08:03:25 | [diff] [blame] | 1457 | pushurl = <pushurl> |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1458 | push = <refspec> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1459 | fetch = <refspec></code></pre> |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1460 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1461 | <div class="paragraph"><p>The <code><pushurl></code> is used for pushes only. It is optional and defaults |
| 1462 | to <code><url></code>.</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1463 | </div> |
| 1464 | <div class="sect2"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1465 | <h3 id="_named_file_in_code_git_dir_remotes_code">Named file in <code>$GIT_DIR/remotes</code></h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1466 | <div class="paragraph"><p>You can choose to provide the name of a |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1467 | file in <code>$GIT_DIR/remotes</code>. The URL |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1468 | in this file will be used to access the repository. The refspec |
| 1469 | in this file will be used as default when you do not |
| 1470 | provide a refspec on the command line. This file should have the |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1471 | following format:</p></div> |
Junio C Hamano | 1caaf47 | 2006-12-31 08:29:35 | [diff] [blame] | 1472 | <div class="listingblock"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1473 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1474 | <pre><code> URL: one of the above URL format |
Junio C Hamano | d3361ad | 2007-01-01 03:20:24 | [diff] [blame] | 1475 | Push: <refspec> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1476 | Pull: <refspec></code></pre> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1477 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1478 | <div class="paragraph"><p><code>Push:</code> lines are used by <em>git push</em> and |
| 1479 | <code>Pull:</code> lines are used by <em>git pull</em> and <em>git fetch</em>. |
| 1480 | Multiple <code>Push:</code> and <code>Pull:</code> lines may |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1481 | be specified for additional branch mappings.</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1482 | </div> |
| 1483 | <div class="sect2"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1484 | <h3 id="_named_file_in_code_git_dir_branches_code">Named file in <code>$GIT_DIR/branches</code></h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1485 | <div class="paragraph"><p>You can choose to provide the name of a |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1486 | file in <code>$GIT_DIR/branches</code>. |
Junio C Hamano | 054ea08 | 2008-06-01 08:26:34 | [diff] [blame] | 1487 | The URL in this file will be used to access the repository. |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1488 | This file should have the following format:</p></div> |
Junio C Hamano | 1caaf47 | 2006-12-31 08:29:35 | [diff] [blame] | 1489 | <div class="listingblock"> |
Junio C Hamano | 249572f | 2006-10-24 05:44:08 | [diff] [blame] | 1490 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1491 | <pre><code> <url>#<head></code></pre> |
Junio C Hamano | 249572f | 2006-10-24 05:44:08 | [diff] [blame] | 1492 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1493 | <div class="paragraph"><p><code><url></code> is required; <code>#<head></code> is optional.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1494 | <div class="paragraph"><p>Depending on the operation, git will use one of the following |
| 1495 | refspecs, if you don’t provide one on the command line. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1496 | <code><branch></code> is the name of this file in <code>$GIT_DIR/branches</code> and |
| 1497 | <code><head></code> defaults to <code>master</code>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1498 | <div class="paragraph"><p>git fetch uses:</p></div> |
Junio C Hamano | 1caaf47 | 2006-12-31 08:29:35 | [diff] [blame] | 1499 | <div class="listingblock"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1500 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1501 | <pre><code> refs/heads/<head>:refs/heads/<branch></code></pre> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1502 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1503 | <div class="paragraph"><p>git push uses:</p></div> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1504 | <div class="listingblock"> |
| 1505 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1506 | <pre><code> HEAD:refs/heads/<head></code></pre> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1507 | </div></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1508 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1509 | </div> |
| 1510 | </div> |
| 1511 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1512 | <h2 id="_merge_strategies">MERGE STRATEGIES</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1513 | <div class="sectionbody"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1514 | <div class="paragraph"><p>The merge mechanism (<code>git merge</code> and <code>git pull</code> commands) allows the |
| 1515 | backend <em>merge strategies</em> to be chosen with <code>-s</code> option. Some strategies |
| 1516 | can also take their own options, which can be passed by giving <code>-X<option></code> |
| 1517 | arguments to <code>git merge</code> and/or <code>git pull</code>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1518 | <div class="dlist"><dl> |
| 1519 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1520 | resolve |
| 1521 | </dt> |
| 1522 | <dd> |
| 1523 | <p> |
| 1524 | This can only resolve two heads (i.e. the current branch |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1525 | and another branch you pulled from) using a 3-way merge |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1526 | algorithm. It tries to carefully detect criss-cross |
| 1527 | merge ambiguities and is considered generally safe and |
| 1528 | fast. |
| 1529 | </p> |
| 1530 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1531 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1532 | recursive |
| 1533 | </dt> |
| 1534 | <dd> |
| 1535 | <p> |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1536 | This can only resolve two heads using a 3-way merge |
| 1537 | algorithm. When there is more than one common |
| 1538 | ancestor that can be used for 3-way merge, it creates a |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1539 | merged tree of the common ancestors and uses that as |
| 1540 | the reference tree for the 3-way merge. This has been |
| 1541 | reported to result in fewer merge conflicts without |
Junio C Hamano | 5b3533d | 2014-02-27 23:07:15 | [diff] [blame] | 1542 | causing mismerges by tests done on actual merge commits |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1543 | taken from Linux 2.6 kernel development history. |
| 1544 | Additionally this can detect and handle merges involving |
| 1545 | renames. This is the default merge strategy when |
| 1546 | pulling or merging one branch. |
| 1547 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1548 | <div class="paragraph"><p>The <em>recursive</em> strategy can take the following options:</p></div> |
| 1549 | <div class="dlist"><dl> |
| 1550 | <dt class="hdlist1"> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1551 | ours |
| 1552 | </dt> |
| 1553 | <dd> |
| 1554 | <p> |
| 1555 | This option forces conflicting hunks to be auto-resolved cleanly by |
| 1556 | favoring <em>our</em> version. Changes from the other tree that do not |
| 1557 | conflict with our side are reflected to the merge result. |
Junio C Hamano | a3cfb76 | 2012-09-15 05:32:14 | [diff] [blame] | 1558 | For a binary file, the entire contents are taken from our side. |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1559 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1560 | <div class="paragraph"><p>This should not be confused with the <em>ours</em> merge strategy, which does not |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1561 | even look at what the other tree contains at all. It discards everything |
| 1562 | the other tree did, declaring <em>our</em> history contains all that happened in it.</p></div> |
| 1563 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1564 | <dt class="hdlist1"> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1565 | theirs |
| 1566 | </dt> |
| 1567 | <dd> |
| 1568 | <p> |
Junio C Hamano | a3cfb76 | 2012-09-15 05:32:14 | [diff] [blame] | 1569 | This is the opposite of <em>ours</em>. |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1570 | </p> |
| 1571 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1572 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1573 | patience |
| 1574 | </dt> |
| 1575 | <dd> |
| 1576 | <p> |
| 1577 | With this option, <em>merge-recursive</em> spends a little extra time |
| 1578 | to avoid mismerges that sometimes occur due to unimportant |
| 1579 | matching lines (e.g., braces from distinct functions). Use |
| 1580 | this when the branches to be merged have diverged wildly. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1581 | See also <a href="git-diff.html">git-diff(1)</a> <code>--patience</code>. |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1582 | </p> |
| 1583 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1584 | <dt class="hdlist1"> |
Junio C Hamano | 1575c20 | 2013-04-15 20:25:59 | [diff] [blame] | 1585 | diff-algorithm=[patience|minimal|histogram|myers] |
| 1586 | </dt> |
| 1587 | <dd> |
| 1588 | <p> |
| 1589 | Tells <em>merge-recursive</em> to use a different diff algorithm, which |
| 1590 | can help avoid mismerges that occur due to unimportant matching |
| 1591 | lines (such as braces from distinct functions). See also |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1592 | <a href="git-diff.html">git-diff(1)</a> <code>--diff-algorithm</code>. |
Junio C Hamano | 1575c20 | 2013-04-15 20:25:59 | [diff] [blame] | 1593 | </p> |
| 1594 | </dd> |
| 1595 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1596 | ignore-space-change |
| 1597 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1598 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1599 | ignore-all-space |
| 1600 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1601 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1602 | ignore-space-at-eol |
| 1603 | </dt> |
| 1604 | <dd> |
| 1605 | <p> |
| 1606 | Treats lines with the indicated type of whitespace change as |
| 1607 | unchanged for the sake of a three-way merge. Whitespace |
| 1608 | changes mixed with other changes to a line are not ignored. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1609 | See also <a href="git-diff.html">git-diff(1)</a> <code>-b</code>, <code>-w</code>, and |
| 1610 | <code>--ignore-space-at-eol</code>. |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1611 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1612 | <div class="ulist"><ul> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1613 | <li> |
| 1614 | <p> |
| 1615 | If <em>their</em> version only introduces whitespace changes to a line, |
| 1616 | <em>our</em> version is used; |
| 1617 | </p> |
| 1618 | </li> |
| 1619 | <li> |
| 1620 | <p> |
| 1621 | If <em>our</em> version introduces whitespace changes but <em>their</em> |
| 1622 | version includes a substantial change, <em>their</em> version is used; |
| 1623 | </p> |
| 1624 | </li> |
| 1625 | <li> |
| 1626 | <p> |
| 1627 | Otherwise, the merge proceeds in the usual way. |
| 1628 | </p> |
| 1629 | </li> |
| 1630 | </ul></div> |
| 1631 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1632 | <dt class="hdlist1"> |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1633 | renormalize |
| 1634 | </dt> |
| 1635 | <dd> |
| 1636 | <p> |
| 1637 | This runs a virtual check-out and check-in of all three stages |
| 1638 | of a file when resolving a three-way merge. This option is |
| 1639 | meant to be used when merging branches with different clean |
| 1640 | filters or end-of-line normalization rules. See "Merging |
| 1641 | branches with differing checkin/checkout attributes" in |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1642 | <a href="gitattributes.html">gitattributes(5)</a> for details. |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1643 | </p> |
| 1644 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1645 | <dt class="hdlist1"> |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1646 | no-renormalize |
| 1647 | </dt> |
| 1648 | <dd> |
| 1649 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1650 | Disables the <code>renormalize</code> option. This overrides the |
| 1651 | <code>merge.renormalize</code> configuration variable. |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1652 | </p> |
| 1653 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1654 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1655 | rename-threshold=<n> |
| 1656 | </dt> |
| 1657 | <dd> |
| 1658 | <p> |
| 1659 | Controls the similarity threshold used for rename detection. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1660 | See also <a href="git-diff.html">git-diff(1)</a> <code>-M</code>. |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1661 | </p> |
| 1662 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1663 | <dt class="hdlist1"> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1664 | subtree[=<path>] |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1665 | </dt> |
| 1666 | <dd> |
| 1667 | <p> |
| 1668 | This option is a more advanced form of <em>subtree</em> strategy, where |
| 1669 | the strategy makes a guess on how two trees must be shifted to |
| 1670 | match with each other when merging. Instead, the specified path |
| 1671 | is prefixed (or stripped from the beginning) to make the shape of |
| 1672 | two trees to match. |
| 1673 | </p> |
| 1674 | </dd> |
| 1675 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1676 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1677 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1678 | octopus |
| 1679 | </dt> |
| 1680 | <dd> |
| 1681 | <p> |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1682 | This resolves cases with more than two heads, but refuses to do |
| 1683 | a complex merge that needs manual resolution. It is |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1684 | primarily meant to be used for bundling topic branch |
| 1685 | heads together. This is the default merge strategy when |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1686 | pulling or merging more than one branch. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1687 | </p> |
| 1688 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1689 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1690 | ours |
| 1691 | </dt> |
| 1692 | <dd> |
| 1693 | <p> |
Junio C Hamano | bf984de | 2009-11-23 06:11:19 | [diff] [blame] | 1694 | This resolves any number of heads, but the resulting tree of the |
| 1695 | merge is always that of the current branch head, effectively |
| 1696 | ignoring all changes from all other branches. It is meant to |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1697 | be used to supersede old development history of side |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1698 | branches. Note that this is different from the -Xours option to |
| 1699 | the <em>recursive</em> merge strategy. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1700 | </p> |
| 1701 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1702 | <dt class="hdlist1"> |
Junio C Hamano | e6c9203 | 2008-03-19 09:24:34 | [diff] [blame] | 1703 | subtree |
| 1704 | </dt> |
| 1705 | <dd> |
| 1706 | <p> |
| 1707 | This is a modified recursive strategy. When merging trees A and |
| 1708 | B, if B corresponds to a subtree of A, B is first adjusted to |
| 1709 | match the tree structure of A, instead of reading the trees at |
| 1710 | the same level. This adjustment is also done to the common |
| 1711 | ancestor tree. |
| 1712 | </p> |
| 1713 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1714 | </dl></div> |
Junio C Hamano | cf77b04 | 2013-12-17 23:54:21 | [diff] [blame] | 1715 | <div class="paragraph"><p>With the strategies that use 3-way merge (including the default, <em>recursive</em>), |
| 1716 | if a change is made on both branches, but later reverted on one of the |
| 1717 | branches, that change will be present in the merged result; some people find |
| 1718 | this behavior confusing. It occurs because only the heads and the merge base |
| 1719 | are considered when performing a merge, not the individual commits. The merge |
| 1720 | algorithm therefore considers the reverted change as no change at all, and |
| 1721 | substitutes the changed version instead.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1722 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1723 | </div> |
| 1724 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1725 | <h2 id="_default_behaviour">DEFAULT BEHAVIOUR</h2> |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1726 | <div class="sectionbody"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1727 | <div class="paragraph"><p>Often people use <code>git pull</code> without giving any parameter. |
| 1728 | Traditionally, this has been equivalent to saying <code>git pull |
| 1729 | origin</code>. However, when configuration <code>branch.<name>.remote</code> is |
| 1730 | present while on branch <code><name></code>, that value is used instead of |
| 1731 | <code>origin</code>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1732 | <div class="paragraph"><p>In order to determine what URL to use to fetch from, the value |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1733 | of the configuration <code>remote.<origin>.url</code> is consulted |
| 1734 | and if there is not any such variable, the value on <code>URL: ` line |
| 1735 | in `$GIT_DIR/remotes/<origin></code> file is used.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1736 | <div class="paragraph"><p>In order to determine what remote branches to fetch (and |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1737 | optionally store in the remote-tracking branches) when the command is |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1738 | run without any refspec parameters on the command line, values |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1739 | of the configuration variable <code>remote.<origin>.fetch</code> are |
| 1740 | consulted, and if there aren’t any, <code>$GIT_DIR/remotes/<origin></code> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1741 | file is consulted and its `Pull: ` lines are used. |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1742 | In addition to the refspec formats described in the OPTIONS |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1743 | section, you can have a globbing refspec that looks like this:</p></div> |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1744 | <div class="listingblock"> |
| 1745 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1746 | <pre><code>refs/heads/*:refs/remotes/origin/*</code></pre> |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1747 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1748 | <div class="paragraph"><p>A globbing refspec must have a non-empty RHS (i.e. must store |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1749 | what were fetched in remote-tracking branches), and its LHS and RHS |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1750 | must end with <code>/*</code>. The above specifies that all remote |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1751 | branches are tracked using remote-tracking branches in |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1752 | <code>refs/remotes/origin/</code> hierarchy under the same name.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1753 | <div class="paragraph"><p>The rule to determine which remote branch to merge after |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1754 | fetching is a bit involved, in order not to break backward |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1755 | compatibility.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1756 | <div class="paragraph"><p>If explicit refspecs were given on the command |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1757 | line of <code>git pull</code>, they are all merged.</p></div> |
| 1758 | <div class="paragraph"><p>When no refspec was given on the command line, then <code>git pull</code> |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1759 | uses the refspec from the configuration or |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1760 | <code>$GIT_DIR/remotes/<origin></code>. In such cases, the following |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1761 | rules apply:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1762 | <div class="olist arabic"><ol class="arabic"> |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1763 | <li> |
| 1764 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1765 | If <code>branch.<name>.merge</code> configuration for the current |
| 1766 | branch <code><name></code> exists, that is the name of the branch at the |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1767 | remote site that is merged. |
| 1768 | </p> |
| 1769 | </li> |
| 1770 | <li> |
| 1771 | <p> |
| 1772 | If the refspec is a globbing one, nothing is merged. |
| 1773 | </p> |
| 1774 | </li> |
| 1775 | <li> |
| 1776 | <p> |
| 1777 | Otherwise the remote branch of the first refspec is merged. |
| 1778 | </p> |
| 1779 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1780 | </ol></div> |
Junio C Hamano | d333998 | 2007-02-09 08:38:48 | [diff] [blame] | 1781 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1782 | </div> |
| 1783 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1784 | <h2 id="_examples">EXAMPLES</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1785 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1786 | <div class="ulist"><ul> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1787 | <li> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1788 | <p> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1789 | Update the remote-tracking branches for the repository |
| 1790 | you cloned from, then merge one of them into your |
| 1791 | current branch: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1792 | </p> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1793 | <div class="listingblock"> |
| 1794 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1795 | <pre><code>$ git pull, git pull origin</code></pre> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1796 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1797 | <div class="paragraph"><p>Normally the branch merged in is the HEAD of the remote repository, |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1798 | but the choice is determined by the branch.<name>.remote and |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1799 | branch.<name>.merge options; see <a href="git-config.html">git-config(1)</a> for details.</p></div> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1800 | </li> |
| 1801 | <li> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1802 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1803 | Merge into the current branch the remote branch <code>next</code>: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1804 | </p> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1805 | <div class="listingblock"> |
| 1806 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1807 | <pre><code>$ git pull origin next</code></pre> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1808 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1809 | <div class="paragraph"><p>This leaves a copy of <code>next</code> temporarily in FETCH_HEAD, but |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1810 | does not update any remote-tracking branches. Using remote-tracking |
| 1811 | branches, the same can be done by invoking fetch and merge:</p></div> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1812 | <div class="listingblock"> |
| 1813 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1814 | <pre><code>$ git fetch origin |
| 1815 | $ git merge origin/next</code></pre> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1816 | </div></div> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1817 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1818 | </ul></div> |
Junio C Hamano | 09cfe6f | 2013-03-27 22:10:42 | [diff] [blame] | 1819 | <div class="paragraph"><p>If you tried a pull which resulted in complex conflicts and |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1820 | would want to start over, you can recover with <em>git reset</em>.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1821 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1822 | </div> |
| 1823 | <div class="sect1"> |
Junio C Hamano | 5cd1518 | 2011-04-05 00:21:10 | [diff] [blame] | 1824 | <h2 id="_bugs">BUGS</h2> |
| 1825 | <div class="sectionbody"> |
| 1826 | <div class="paragraph"><p>Using --recurse-submodules can only fetch new commits in already checked |
| 1827 | out submodules right now. When e.g. upstream added a new submodule in the |
| 1828 | just fetched commits of the superproject the submodule itself can not be |
| 1829 | fetched, making it impossible to check out that submodule later without |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1830 | having to do a fetch again. This is expected to be fixed in a future Git |
Junio C Hamano | 5cd1518 | 2011-04-05 00:21:10 | [diff] [blame] | 1831 | version.</p></div> |
| 1832 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1833 | </div> |
| 1834 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1835 | <h2 id="_see_also">SEE ALSO</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1836 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1837 | <div class="paragraph"><p><a href="git-fetch.html">git-fetch(1)</a>, <a href="git-merge.html">git-merge(1)</a>, <a href="git-config.html">git-config(1)</a></p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1838 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1839 | </div> |
| 1840 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1841 | <h2 id="_git">GIT</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1842 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1843 | <div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1844 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 1845 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1846 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 1847 | <div id="footnotes"><hr /></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1848 | <div id="footer"> |
| 1849 | <div id="footer-text"> |
Junio C Hamano | 289d7e8 | 2016-01-27 00:20:38 | [diff] [blame] | 1850 | Last updated 2016-01-26 16:20:09 PST |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1851 | </div> |
| 1852 | </div> |
| 1853 | </body> |
| 1854 | </html> |