Junio C Hamano | b9d9d90 | 2018-05-23 07:07:42 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
| 3 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 5 | <head> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 6 | <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> |
Junio C Hamano | a85030a | 2022-07-27 16:48:21 | [diff] [blame] | 7 | <meta name="generator" content="AsciiDoc 10.2.0" /> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 8 | <title>git-add(1)</title> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 9 | <style type="text/css"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 10 | /* Shared CSS for AsciiDoc xhtml11 and html5 backends */ |
| 11 | |
| 12 | /* Default font. */ |
| 13 | body { |
| 14 | font-family: Georgia,serif; |
| 15 | } |
| 16 | |
| 17 | /* Title font. */ |
| 18 | h1, h2, h3, h4, h5, h6, |
| 19 | div.title, caption.title, |
| 20 | thead, p.table.header, |
| 21 | #toctitle, |
| 22 | #author, #revnumber, #revdate, #revremark, |
| 23 | #footer { |
| 24 | font-family: Arial,Helvetica,sans-serif; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | body { |
| 28 | margin: 1em 5% 1em 5%; |
| 29 | } |
| 30 | |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 31 | a { |
| 32 | color: blue; |
| 33 | text-decoration: underline; |
| 34 | } |
| 35 | a:visited { |
| 36 | color: fuchsia; |
| 37 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 38 | |
| 39 | em { |
| 40 | font-style: italic; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 41 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | strong { |
| 45 | font-weight: bold; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 46 | color: #083194; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 47 | } |
| 48 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 49 | h1, h2, h3, h4, h5, h6 { |
| 50 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 51 | margin-top: 1.2em; |
| 52 | margin-bottom: 0.5em; |
| 53 | line-height: 1.3; |
| 54 | } |
| 55 | |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 56 | h1, h2, h3 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 57 | border-bottom: 2px solid silver; |
| 58 | } |
| 59 | h2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 60 | padding-top: 0.5em; |
| 61 | } |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 62 | h3 { |
| 63 | float: left; |
| 64 | } |
| 65 | h3 + * { |
| 66 | clear: left; |
| 67 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 68 | h5 { |
| 69 | font-size: 1.0em; |
| 70 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 71 | |
| 72 | div.sectionbody { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 73 | margin-left: 0; |
| 74 | } |
| 75 | |
| 76 | hr { |
| 77 | border: 1px solid silver; |
| 78 | } |
| 79 | |
| 80 | p { |
| 81 | margin-top: 0.5em; |
| 82 | margin-bottom: 0.5em; |
| 83 | } |
| 84 | |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 85 | ul, ol, li > p { |
| 86 | margin-top: 0; |
| 87 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 88 | ul > li { color: #aaa; } |
| 89 | ul > li > * { color: black; } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 90 | |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 91 | .monospaced, code, pre { |
| 92 | font-family: "Courier New", Courier, monospace; |
| 93 | font-size: inherit; |
| 94 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 95 | padding: 0; |
| 96 | margin: 0; |
| 97 | } |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 98 | pre { |
| 99 | white-space: pre-wrap; |
| 100 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 101 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 102 | #author { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 103 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 104 | font-weight: bold; |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 105 | font-size: 1.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 106 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 107 | #email { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 108 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 109 | #revnumber, #revdate, #revremark { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 110 | } |
| 111 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 112 | #footer { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 113 | font-size: small; |
| 114 | border-top: 2px solid silver; |
| 115 | padding-top: 0.5em; |
| 116 | margin-top: 4.0em; |
| 117 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 118 | #footer-text { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 119 | float: left; |
| 120 | padding-bottom: 0.5em; |
| 121 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 122 | #footer-badges { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 123 | float: right; |
| 124 | padding-bottom: 0.5em; |
| 125 | } |
| 126 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 127 | #preamble { |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 128 | margin-top: 1.5em; |
| 129 | margin-bottom: 1.5em; |
| 130 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 131 | div.imageblock, div.exampleblock, div.verseblock, |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 132 | div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, |
| 133 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 134 | margin-top: 1.0em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 135 | margin-bottom: 1.5em; |
| 136 | } |
| 137 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 138 | margin-top: 2.0em; |
| 139 | margin-bottom: 2.0em; |
| 140 | margin-right: 10%; |
| 141 | color: #606060; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | div.content { /* Block element content. */ |
| 145 | padding: 0; |
| 146 | } |
| 147 | |
| 148 | /* Block element titles. */ |
| 149 | div.title, caption.title { |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 150 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 151 | font-weight: bold; |
| 152 | text-align: left; |
| 153 | margin-top: 1.0em; |
| 154 | margin-bottom: 0.5em; |
| 155 | } |
| 156 | div.title + * { |
| 157 | margin-top: 0; |
| 158 | } |
| 159 | |
| 160 | td div.title:first-child { |
| 161 | margin-top: 0.0em; |
| 162 | } |
| 163 | div.content div.title:first-child { |
| 164 | margin-top: 0.0em; |
| 165 | } |
| 166 | div.content + div.title { |
| 167 | margin-top: 0.0em; |
| 168 | } |
| 169 | |
| 170 | div.sidebarblock > div.content { |
| 171 | background: #ffffee; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 172 | border: 1px solid #dddddd; |
| 173 | border-left: 4px solid #f0f0f0; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 174 | padding: 0.5em; |
| 175 | } |
| 176 | |
| 177 | div.listingblock > div.content { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 178 | border: 1px solid #dddddd; |
| 179 | border-left: 5px solid #f0f0f0; |
| 180 | background: #f8f8f8; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 181 | padding: 0.5em; |
| 182 | } |
| 183 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 184 | div.quoteblock, div.verseblock { |
| 185 | padding-left: 1.0em; |
| 186 | margin-left: 1.0em; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 187 | margin-right: 10%; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 188 | border-left: 5px solid #f0f0f0; |
| 189 | color: #888; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 190 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 191 | |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 192 | div.quoteblock > div.attribution { |
| 193 | padding-top: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 194 | text-align: right; |
| 195 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 196 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 197 | div.verseblock > pre.content { |
| 198 | font-family: inherit; |
| 199 | font-size: inherit; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 200 | } |
| 201 | div.verseblock > div.attribution { |
| 202 | padding-top: 0.75em; |
| 203 | text-align: left; |
| 204 | } |
| 205 | /* DEPRECATED: Pre version 8.2.7 verse style literal block. */ |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 206 | div.verseblock + div.attribution { |
| 207 | text-align: left; |
| 208 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 209 | |
| 210 | div.admonitionblock .icon { |
| 211 | vertical-align: top; |
| 212 | font-size: 1.1em; |
| 213 | font-weight: bold; |
| 214 | text-decoration: underline; |
| 215 | color: #527bbd; |
| 216 | padding-right: 0.5em; |
| 217 | } |
| 218 | div.admonitionblock td.content { |
| 219 | padding-left: 0.5em; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 220 | border-left: 3px solid #dddddd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 221 | } |
| 222 | |
| 223 | div.exampleblock > div.content { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 224 | border-left: 3px solid #dddddd; |
| 225 | padding-left: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 226 | } |
| 227 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 228 | div.imageblock div.content { padding-left: 0; } |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 229 | span.image img { border-style: none; vertical-align: text-bottom; } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 230 | a.image:visited { color: white; } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 231 | |
| 232 | dl { |
| 233 | margin-top: 0.8em; |
| 234 | margin-bottom: 0.8em; |
| 235 | } |
| 236 | dt { |
| 237 | margin-top: 0.5em; |
| 238 | margin-bottom: 0; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 239 | font-style: normal; |
| 240 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 241 | } |
| 242 | dd > *:first-child { |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 243 | margin-top: 0.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 244 | } |
| 245 | |
| 246 | ul, ol { |
| 247 | list-style-position: outside; |
| 248 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 249 | ol.arabic { |
| 250 | list-style-type: decimal; |
| 251 | } |
| 252 | ol.loweralpha { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 253 | list-style-type: lower-alpha; |
| 254 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 255 | ol.upperalpha { |
| 256 | list-style-type: upper-alpha; |
| 257 | } |
| 258 | ol.lowerroman { |
| 259 | list-style-type: lower-roman; |
| 260 | } |
| 261 | ol.upperroman { |
| 262 | list-style-type: upper-roman; |
| 263 | } |
| 264 | |
| 265 | div.compact ul, div.compact ol, |
| 266 | div.compact p, div.compact p, |
| 267 | div.compact div, div.compact div { |
| 268 | margin-top: 0.1em; |
| 269 | margin-bottom: 0.1em; |
| 270 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 271 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 272 | tfoot { |
| 273 | font-weight: bold; |
| 274 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 275 | td > div.verse { |
| 276 | white-space: pre; |
| 277 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 278 | |
| 279 | div.hdlist { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 280 | margin-top: 0.8em; |
| 281 | margin-bottom: 0.8em; |
| 282 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 283 | div.hdlist tr { |
| 284 | padding-bottom: 15px; |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 285 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 286 | dt.hdlist1.strong, td.hdlist1.strong { |
| 287 | font-weight: bold; |
| 288 | } |
| 289 | td.hdlist1 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 290 | vertical-align: top; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 291 | font-style: normal; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 292 | padding-right: 0.8em; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 293 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 294 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 295 | td.hdlist2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 296 | vertical-align: top; |
| 297 | } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 298 | div.hdlist.compact tr { |
| 299 | margin: 0; |
| 300 | padding-bottom: 0; |
| 301 | } |
| 302 | |
| 303 | .comment { |
| 304 | background: yellow; |
| 305 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 306 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 307 | .footnote, .footnoteref { |
| 308 | font-size: 0.8em; |
| 309 | } |
| 310 | |
| 311 | span.footnote, span.footnoteref { |
| 312 | vertical-align: super; |
| 313 | } |
| 314 | |
| 315 | #footnotes { |
| 316 | margin: 20px 0 20px 0; |
| 317 | padding: 7px 0 0 0; |
| 318 | } |
| 319 | |
| 320 | #footnotes div.footnote { |
| 321 | margin: 0 0 5px 0; |
| 322 | } |
| 323 | |
| 324 | #footnotes hr { |
| 325 | border: none; |
| 326 | border-top: 1px solid silver; |
| 327 | height: 1px; |
| 328 | text-align: left; |
| 329 | margin-left: 0; |
| 330 | width: 20%; |
| 331 | min-width: 100px; |
| 332 | } |
| 333 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 334 | div.colist td { |
| 335 | padding-right: 0.5em; |
| 336 | padding-bottom: 0.3em; |
| 337 | vertical-align: top; |
| 338 | } |
| 339 | div.colist td img { |
| 340 | margin-top: 0.3em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 341 | } |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 342 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 343 | @media print { |
| 344 | #footer-badges { display: none; } |
| 345 | } |
| 346 | |
| 347 | #toc { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 348 | margin-bottom: 2.5em; |
| 349 | } |
| 350 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 351 | #toctitle { |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 352 | color: #527bbd; |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 353 | font-size: 1.1em; |
| 354 | font-weight: bold; |
| 355 | margin-top: 1.0em; |
| 356 | margin-bottom: 0.1em; |
| 357 | } |
| 358 | |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 359 | div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 360 | margin-top: 0; |
| 361 | margin-bottom: 0; |
| 362 | } |
| 363 | div.toclevel2 { |
| 364 | margin-left: 2em; |
| 365 | font-size: 0.9em; |
| 366 | } |
| 367 | div.toclevel3 { |
| 368 | margin-left: 4em; |
| 369 | font-size: 0.9em; |
| 370 | } |
| 371 | div.toclevel4 { |
| 372 | margin-left: 6em; |
| 373 | font-size: 0.9em; |
| 374 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 375 | |
| 376 | span.aqua { color: aqua; } |
| 377 | span.black { color: black; } |
| 378 | span.blue { color: blue; } |
| 379 | span.fuchsia { color: fuchsia; } |
| 380 | span.gray { color: gray; } |
| 381 | span.green { color: green; } |
| 382 | span.lime { color: lime; } |
| 383 | span.maroon { color: maroon; } |
| 384 | span.navy { color: navy; } |
| 385 | span.olive { color: olive; } |
| 386 | span.purple { color: purple; } |
| 387 | span.red { color: red; } |
| 388 | span.silver { color: silver; } |
| 389 | span.teal { color: teal; } |
| 390 | span.white { color: white; } |
| 391 | span.yellow { color: yellow; } |
| 392 | |
| 393 | span.aqua-background { background: aqua; } |
| 394 | span.black-background { background: black; } |
| 395 | span.blue-background { background: blue; } |
| 396 | span.fuchsia-background { background: fuchsia; } |
| 397 | span.gray-background { background: gray; } |
| 398 | span.green-background { background: green; } |
| 399 | span.lime-background { background: lime; } |
| 400 | span.maroon-background { background: maroon; } |
| 401 | span.navy-background { background: navy; } |
| 402 | span.olive-background { background: olive; } |
| 403 | span.purple-background { background: purple; } |
| 404 | span.red-background { background: red; } |
| 405 | span.silver-background { background: silver; } |
| 406 | span.teal-background { background: teal; } |
| 407 | span.white-background { background: white; } |
| 408 | span.yellow-background { background: yellow; } |
| 409 | |
| 410 | span.big { font-size: 2em; } |
| 411 | span.small { font-size: 0.6em; } |
| 412 | |
| 413 | span.underline { text-decoration: underline; } |
| 414 | span.overline { text-decoration: overline; } |
| 415 | span.line-through { text-decoration: line-through; } |
| 416 | |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 417 | div.unbreakable { page-break-inside: avoid; } |
| 418 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 419 | |
| 420 | /* |
| 421 | * xhtml11 specific |
| 422 | * |
| 423 | * */ |
| 424 | |
| 425 | div.tableblock { |
| 426 | margin-top: 1.0em; |
| 427 | margin-bottom: 1.5em; |
| 428 | } |
| 429 | div.tableblock > table { |
| 430 | border: 3px solid #527bbd; |
| 431 | } |
| 432 | thead, p.table.header { |
| 433 | font-weight: bold; |
| 434 | color: #527bbd; |
| 435 | } |
| 436 | p.table { |
| 437 | margin-top: 0; |
| 438 | } |
Junio C Hamano | 725b0da | 2020-01-22 22:02:40 | [diff] [blame] | 439 | /* Because the table frame attribute is overridden by CSS in most browsers. */ |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 440 | div.tableblock > table[frame="void"] { |
| 441 | border-style: none; |
| 442 | } |
| 443 | div.tableblock > table[frame="hsides"] { |
| 444 | border-left-style: none; |
| 445 | border-right-style: none; |
| 446 | } |
| 447 | div.tableblock > table[frame="vsides"] { |
| 448 | border-top-style: none; |
| 449 | border-bottom-style: none; |
| 450 | } |
| 451 | |
| 452 | |
| 453 | /* |
| 454 | * html5 specific |
| 455 | * |
| 456 | * */ |
| 457 | |
| 458 | table.tableblock { |
| 459 | margin-top: 1.0em; |
| 460 | margin-bottom: 1.5em; |
| 461 | } |
| 462 | thead, p.tableblock.header { |
| 463 | font-weight: bold; |
| 464 | color: #527bbd; |
| 465 | } |
| 466 | p.tableblock { |
| 467 | margin-top: 0; |
| 468 | } |
| 469 | table.tableblock { |
| 470 | border-width: 3px; |
| 471 | border-spacing: 0px; |
| 472 | border-style: solid; |
| 473 | border-color: #527bbd; |
| 474 | border-collapse: collapse; |
| 475 | } |
| 476 | th.tableblock, td.tableblock { |
| 477 | border-width: 1px; |
| 478 | padding: 4px; |
| 479 | border-style: solid; |
| 480 | border-color: #527bbd; |
| 481 | } |
| 482 | |
| 483 | table.tableblock.frame-topbot { |
| 484 | border-left-style: hidden; |
| 485 | border-right-style: hidden; |
| 486 | } |
| 487 | table.tableblock.frame-sides { |
| 488 | border-top-style: hidden; |
| 489 | border-bottom-style: hidden; |
| 490 | } |
| 491 | table.tableblock.frame-none { |
| 492 | border-style: hidden; |
| 493 | } |
| 494 | |
| 495 | th.tableblock.halign-left, td.tableblock.halign-left { |
| 496 | text-align: left; |
| 497 | } |
| 498 | th.tableblock.halign-center, td.tableblock.halign-center { |
| 499 | text-align: center; |
| 500 | } |
| 501 | th.tableblock.halign-right, td.tableblock.halign-right { |
| 502 | text-align: right; |
| 503 | } |
| 504 | |
| 505 | th.tableblock.valign-top, td.tableblock.valign-top { |
| 506 | vertical-align: top; |
| 507 | } |
| 508 | th.tableblock.valign-middle, td.tableblock.valign-middle { |
| 509 | vertical-align: middle; |
| 510 | } |
| 511 | th.tableblock.valign-bottom, td.tableblock.valign-bottom { |
| 512 | vertical-align: bottom; |
| 513 | } |
| 514 | |
| 515 | |
| 516 | /* |
| 517 | * manpage specific |
| 518 | * |
| 519 | * */ |
| 520 | |
| 521 | body.manpage h1 { |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 522 | padding-top: 0.5em; |
| 523 | padding-bottom: 0.5em; |
| 524 | border-top: 2px solid silver; |
| 525 | border-bottom: 2px solid silver; |
| 526 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 527 | body.manpage h2 { |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 528 | border-style: none; |
| 529 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 530 | body.manpage div.sectionbody { |
| 531 | margin-left: 3em; |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 532 | } |
| 533 | |
| 534 | @media print { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 535 | body.manpage div#toc { display: none; } |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 536 | } |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 537 | |
| 538 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 539 | </style> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 540 | <script type="text/javascript"> |
| 541 | /*<![CDATA[*/ |
Junio C Hamano | 2b15318 | 2021-12-15 21:00:31 | [diff] [blame] | 542 | var asciidoc = { // Namespace. |
| 543 | |
| 544 | ///////////////////////////////////////////////////////////////////// |
| 545 | // Table Of Contents generator |
| 546 | ///////////////////////////////////////////////////////////////////// |
| 547 | |
| 548 | /* Author: Mihai Bazon, September 2002 |
| 549 | * http://students.infoiasi.ro/~mishoo |
| 550 | * |
| 551 | * Table Of Content generator |
| 552 | * Version: 0.4 |
| 553 | * |
| 554 | * Feel free to use this script under the terms of the GNU General Public |
| 555 | * License, as long as you do not remove or alter this notice. |
| 556 | */ |
| 557 | |
| 558 | /* modified by Troy D. Hanson, September 2006. License: GPL */ |
| 559 | /* modified by Stuart Rackham, 2006, 2009. License: GPL */ |
| 560 | |
| 561 | // toclevels = 1..4. |
| 562 | toc: function (toclevels) { |
| 563 | |
| 564 | function getText(el) { |
| 565 | var text = ""; |
| 566 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 567 | if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants. |
| 568 | text += i.data; |
| 569 | else if (i.firstChild != null) |
| 570 | text += getText(i); |
| 571 | } |
| 572 | return text; |
| 573 | } |
| 574 | |
| 575 | function TocEntry(el, text, toclevel) { |
| 576 | this.element = el; |
| 577 | this.text = text; |
| 578 | this.toclevel = toclevel; |
| 579 | } |
| 580 | |
| 581 | function tocEntries(el, toclevels) { |
| 582 | var result = new Array; |
| 583 | var re = new RegExp('[hH]([1-'+(toclevels+1)+'])'); |
| 584 | // Function that scans the DOM tree for header elements (the DOM2 |
| 585 | // nodeIterator API would be a better technique but not supported by all |
| 586 | // browsers). |
| 587 | var iterate = function (el) { |
| 588 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 589 | if (i.nodeType == 1 /* Node.ELEMENT_NODE */) { |
| 590 | var mo = re.exec(i.tagName); |
| 591 | if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") { |
| 592 | result[result.length] = new TocEntry(i, getText(i), mo[1]-1); |
| 593 | } |
| 594 | iterate(i); |
| 595 | } |
| 596 | } |
| 597 | } |
| 598 | iterate(el); |
| 599 | return result; |
| 600 | } |
| 601 | |
| 602 | var toc = document.getElementById("toc"); |
| 603 | if (!toc) { |
| 604 | return; |
| 605 | } |
| 606 | |
| 607 | // Delete existing TOC entries in case we're reloading the TOC. |
| 608 | var tocEntriesToRemove = []; |
| 609 | var i; |
| 610 | for (i = 0; i < toc.childNodes.length; i++) { |
| 611 | var entry = toc.childNodes[i]; |
| 612 | if (entry.nodeName.toLowerCase() == 'div' |
| 613 | && entry.getAttribute("class") |
| 614 | && entry.getAttribute("class").match(/^toclevel/)) |
| 615 | tocEntriesToRemove.push(entry); |
| 616 | } |
| 617 | for (i = 0; i < tocEntriesToRemove.length; i++) { |
| 618 | toc.removeChild(tocEntriesToRemove[i]); |
| 619 | } |
| 620 | |
| 621 | // Rebuild TOC entries. |
| 622 | var entries = tocEntries(document.getElementById("content"), toclevels); |
| 623 | for (var i = 0; i < entries.length; ++i) { |
| 624 | var entry = entries[i]; |
| 625 | if (entry.element.id == "") |
| 626 | entry.element.id = "_toc_" + i; |
| 627 | var a = document.createElement("a"); |
| 628 | a.href = "#" + entry.element.id; |
| 629 | a.appendChild(document.createTextNode(entry.text)); |
| 630 | var div = document.createElement("div"); |
| 631 | div.appendChild(a); |
| 632 | div.className = "toclevel" + entry.toclevel; |
| 633 | toc.appendChild(div); |
| 634 | } |
| 635 | if (entries.length == 0) |
| 636 | toc.parentNode.removeChild(toc); |
| 637 | }, |
| 638 | |
| 639 | |
| 640 | ///////////////////////////////////////////////////////////////////// |
| 641 | // Footnotes generator |
| 642 | ///////////////////////////////////////////////////////////////////// |
| 643 | |
| 644 | /* Based on footnote generation code from: |
| 645 | * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html |
| 646 | */ |
| 647 | |
| 648 | footnotes: function () { |
| 649 | // Delete existing footnote entries in case we're reloading the footnodes. |
| 650 | var i; |
| 651 | var noteholder = document.getElementById("footnotes"); |
| 652 | if (!noteholder) { |
| 653 | return; |
| 654 | } |
| 655 | var entriesToRemove = []; |
| 656 | for (i = 0; i < noteholder.childNodes.length; i++) { |
| 657 | var entry = noteholder.childNodes[i]; |
| 658 | if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote") |
| 659 | entriesToRemove.push(entry); |
| 660 | } |
| 661 | for (i = 0; i < entriesToRemove.length; i++) { |
| 662 | noteholder.removeChild(entriesToRemove[i]); |
| 663 | } |
| 664 | |
| 665 | // Rebuild footnote entries. |
| 666 | var cont = document.getElementById("content"); |
| 667 | var spans = cont.getElementsByTagName("span"); |
| 668 | var refs = {}; |
| 669 | var n = 0; |
| 670 | for (i=0; i<spans.length; i++) { |
| 671 | if (spans[i].className == "footnote") { |
| 672 | n++; |
| 673 | var note = spans[i].getAttribute("data-note"); |
| 674 | if (!note) { |
| 675 | // Use [\s\S] in place of . so multi-line matches work. |
| 676 | // Because JavaScript has no s (dotall) regex flag. |
| 677 | note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1]; |
| 678 | spans[i].innerHTML = |
| 679 | "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n + |
| 680 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 681 | spans[i].setAttribute("data-note", note); |
| 682 | } |
| 683 | noteholder.innerHTML += |
| 684 | "<div class='footnote' id='_footnote_" + n + "'>" + |
| 685 | "<a href='#_footnoteref_" + n + "' title='Return to text'>" + |
| 686 | n + "</a>. " + note + "</div>"; |
| 687 | var id =spans[i].getAttribute("id"); |
| 688 | if (id != null) refs["#"+id] = n; |
| 689 | } |
| 690 | } |
| 691 | if (n == 0) |
| 692 | noteholder.parentNode.removeChild(noteholder); |
| 693 | else { |
| 694 | // Process footnoterefs. |
| 695 | for (i=0; i<spans.length; i++) { |
| 696 | if (spans[i].className == "footnoteref") { |
| 697 | var href = spans[i].getElementsByTagName("a")[0].getAttribute("href"); |
| 698 | href = href.match(/#.*/)[0]; // Because IE return full URL. |
| 699 | n = refs[href]; |
| 700 | spans[i].innerHTML = |
| 701 | "[<a href='#_footnote_" + n + |
| 702 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 703 | } |
| 704 | } |
| 705 | } |
| 706 | }, |
| 707 | |
| 708 | install: function(toclevels) { |
| 709 | var timerId; |
| 710 | |
| 711 | function reinstall() { |
| 712 | asciidoc.footnotes(); |
| 713 | if (toclevels) { |
| 714 | asciidoc.toc(toclevels); |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | function reinstallAndRemoveTimer() { |
| 719 | clearInterval(timerId); |
| 720 | reinstall(); |
| 721 | } |
| 722 | |
| 723 | timerId = setInterval(reinstall, 500); |
| 724 | if (document.addEventListener) |
| 725 | document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false); |
| 726 | else |
| 727 | window.onload = reinstallAndRemoveTimer; |
| 728 | } |
| 729 | |
| 730 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 731 | asciidoc.install(); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 732 | /*]]>*/ |
| 733 | </script> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 734 | </head> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 735 | <body class="manpage"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 736 | <div id="header"> |
| 737 | <h1> |
| 738 | git-add(1) Manual Page |
| 739 | </h1> |
| 740 | <h2>NAME</h2> |
| 741 | <div class="sectionbody"> |
| 742 | <p>git-add - |
Junio C Hamano | 4cd1c0e | 2007-08-06 04:39:14 | [diff] [blame] | 743 | Add file contents to the index |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 744 | </p> |
| 745 | </div> |
| 746 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 747 | <div id="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 748 | <div class="sect1"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 749 | <h2 id="_synopsis">SYNOPSIS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 750 | <div class="sectionbody"> |
Junio C Hamano | 8b8b0f2 | 2007-08-26 22:10:26 | [diff] [blame] | 751 | <div class="verseblock"> |
Junio C Hamano | e8acc8e | 2015-01-14 22:01:34 | [diff] [blame] | 752 | <pre class="content"><em>git add</em> [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p] |
Junio C Hamano | 7b1585b | 2021-10-14 17:11:58 | [diff] [blame] | 753 | [--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]] [--sparse] |
Junio C Hamano | 4886c77 | 2017-11-27 03:33:28 | [diff] [blame] | 754 | [--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing] [--renormalize] |
Junio C Hamano | 2f5a989 | 2019-12-25 21:12:55 | [diff] [blame] | 755 | [--chmod=(+|-)x] [--pathspec-from-file=<file> [--pathspec-file-nul]] |
| 756 | [--] [<pathspec>…]</pre> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 757 | <div class="attribution"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 758 | </div></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 759 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 760 | </div> |
| 761 | <div class="sect1"> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 762 | <h2 id="_description">DESCRIPTION</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 763 | <div class="sectionbody"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 764 | <div class="paragraph"><p>This command updates the index using the current content found in |
Junio C Hamano | ae05fee | 2010-01-08 07:39:46 | [diff] [blame] | 765 | the working tree, to prepare the content staged for the next commit. |
| 766 | It typically adds the current content of existing paths as a whole, |
| 767 | but with some options it can also be used to add content with |
| 768 | only part of the changes made to the working tree files applied, or |
| 769 | remove paths that do not exist in the working tree anymore.</p></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 770 | <div class="paragraph"><p>The "index" holds a snapshot of the content of the working tree, and it |
Junio C Hamano | 4cd1c0e | 2007-08-06 04:39:14 | [diff] [blame] | 771 | is this snapshot that is taken as the contents of the next commit. Thus |
Junio C Hamano | ffe10ca | 2016-02-04 00:44:23 | [diff] [blame] | 772 | after making any changes to the working tree, and before running |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 773 | the commit command, you must use the <code>add</code> command to add any new or |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 774 | modified files to the index.</p></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 775 | <div class="paragraph"><p>This command can be performed multiple times before a commit. It only |
Junio C Hamano | 4cd1c0e | 2007-08-06 04:39:14 | [diff] [blame] | 776 | adds the content of the specified file(s) at the time the add command is |
| 777 | run; if you want subsequent changes included in the next commit, then |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 778 | you must run <code>git add</code> again to add the new content to the index.</p></div> |
| 779 | <div class="paragraph"><p>The <code>git status</code> command can be used to obtain a summary of which |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 780 | files have changes that are staged for the next commit.</p></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 781 | <div class="paragraph"><p>The <code>git add</code> command will not add ignored files by default. If any |
| 782 | ignored files were explicitly specified on the command line, <code>git add</code> |
Junio C Hamano | 3c1f2c7 | 2007-08-17 07:48:05 | [diff] [blame] | 783 | will fail with a list of ignored files. Ignored files reached by |
Junio C Hamano | 7d9e9bd | 2007-08-29 07:31:47 | [diff] [blame] | 784 | directory recursion or filename globbing performed by Git (quote your |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 785 | globs before the shell) will be silently ignored. The <em>git add</em> command can |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 786 | be used to add ignored files with the <code>-f</code> (force) option.</p></div> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 787 | <div class="paragraph"><p>Please see <a href="git-commit.html">git-commit(1)</a> for alternative ways to add content to a |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 788 | commit.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 789 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 790 | </div> |
| 791 | <div class="sect1"> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 792 | <h2 id="_options">OPTIONS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 793 | <div class="sectionbody"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 794 | <div class="dlist"><dl> |
| 795 | <dt class="hdlist1"> |
Junio C Hamano | bca4cd6 | 2013-02-13 00:01:02 | [diff] [blame] | 796 | <pathspec>… |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 797 | </dt> |
| 798 | <dd> |
| 799 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 800 | Files to add content from. Fileglobs (e.g. <code>*.c</code>) can |
Junio C Hamano | 3d2adc7 | 2006-12-26 03:21:45 | [diff] [blame] | 801 | be given to add all matching files. Also a |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 802 | leading directory name (e.g. <code>dir</code> to add <code>dir/file1</code> |
| 803 | and <code>dir/file2</code>) can be given to update the index to |
Junio C Hamano | 1d669b8 | 2014-03-11 21:36:00 | [diff] [blame] | 804 | match the current state of the directory as a whole (e.g. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 805 | specifying <code>dir</code> will record not just a file <code>dir/file1</code> |
| 806 | modified in the working tree, a file <code>dir/file2</code> added to |
| 807 | the working tree, but also a file <code>dir/file3</code> removed from |
Junio C Hamano | 2567b32 | 2019-02-05 23:33:56 | [diff] [blame] | 808 | the working tree). Note that older versions of Git used |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 809 | to ignore removed files; use <code>--no-all</code> option if you want |
Junio C Hamano | 1d669b8 | 2014-03-11 21:36:00 | [diff] [blame] | 810 | to add modified or new files but ignore removed ones. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 811 | </p> |
Junio C Hamano | 139b7d1 | 2017-10-03 07:10:59 | [diff] [blame] | 812 | <div class="paragraph"><p>For more details about the <pathspec> syntax, see the <em>pathspec</em> entry |
| 813 | in <a href="gitglossary.html">gitglossary(7)</a>.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 814 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 815 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 816 | -n |
| 817 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 818 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 819 | --dry-run |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 820 | </dt> |
| 821 | <dd> |
| 822 | <p> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 823 | Don’t actually add the file(s), just show if they exist and/or will |
Junio C Hamano | afabd32 | 2010-07-19 20:26:15 | [diff] [blame] | 824 | be ignored. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 825 | </p> |
| 826 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 827 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 828 | -v |
| 829 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 830 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 831 | --verbose |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 832 | </dt> |
| 833 | <dd> |
| 834 | <p> |
| 835 | Be verbose. |
| 836 | </p> |
| 837 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 838 | <dt class="hdlist1"> |
Junio C Hamano | 3d2adc7 | 2006-12-26 03:21:45 | [diff] [blame] | 839 | -f |
| 840 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 841 | <dt class="hdlist1"> |
Junio C Hamano | 00e884a | 2008-06-15 05:10:38 | [diff] [blame] | 842 | --force |
| 843 | </dt> |
Junio C Hamano | 3d2adc7 | 2006-12-26 03:21:45 | [diff] [blame] | 844 | <dd> |
| 845 | <p> |
| 846 | Allow adding otherwise ignored files. |
| 847 | </p> |
| 848 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 849 | <dt class="hdlist1"> |
Junio C Hamano | 7b1585b | 2021-10-14 17:11:58 | [diff] [blame] | 850 | --sparse |
| 851 | </dt> |
| 852 | <dd> |
| 853 | <p> |
| 854 | Allow updating index entries outside of the sparse-checkout cone. |
| 855 | Normally, <code>git add</code> refuses to update index entries whose paths do |
| 856 | not fit within the sparse-checkout cone, since those files might |
| 857 | be removed from the working tree without warning. See |
| 858 | <a href="git-sparse-checkout.html">git-sparse-checkout(1)</a> for more details. |
| 859 | </p> |
| 860 | </dd> |
| 861 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 862 | -i |
| 863 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 864 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 865 | --interactive |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 866 | </dt> |
| 867 | <dd> |
| 868 | <p> |
| 869 | Add modified contents in the working tree interactively to |
Junio C Hamano | e0facb9 | 2007-12-05 10:59:48 | [diff] [blame] | 870 | the index. Optional path arguments may be supplied to limit |
| 871 | operation to a subset of the working tree. See “Interactive |
| 872 | mode” for details. |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 873 | </p> |
| 874 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 875 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 876 | -p |
| 877 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 878 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 879 | --patch |
Junio C Hamano | 8d1e471 | 2007-12-11 08:54:21 | [diff] [blame] | 880 | </dt> |
| 881 | <dd> |
| 882 | <p> |
Junio C Hamano | 7df6dcf | 2009-09-13 09:51:17 | [diff] [blame] | 883 | Interactively choose hunks of patch between the index and the |
| 884 | work tree and add them to the index. This gives the user a chance |
| 885 | to review the difference before adding modified contents to the |
| 886 | index. |
Junio C Hamano | 8d1e471 | 2007-12-11 08:54:21 | [diff] [blame] | 887 | </p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 888 | <div class="paragraph"><p>This effectively runs <code>add --interactive</code>, but bypasses the |
| 889 | initial command menu and directly jumps to the <code>patch</code> subcommand. |
Junio C Hamano | e1b2683 | 2009-11-15 10:02:56 | [diff] [blame] | 890 | See “Interactive mode” for details.</p></div> |
Junio C Hamano | 8d1e471 | 2007-12-11 08:54:21 | [diff] [blame] | 891 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 892 | <dt class="hdlist1"> |
Junio C Hamano | 1dbca52 | 2015-05-22 20:48:55 | [diff] [blame] | 893 | -e |
| 894 | </dt> |
| 895 | <dt class="hdlist1"> |
| 896 | --edit |
Junio C Hamano | 52ba295 | 2009-05-18 17:43:02 | [diff] [blame] | 897 | </dt> |
| 898 | <dd> |
| 899 | <p> |
| 900 | Open the diff vs. the index in an editor and let the user |
| 901 | edit it. After the editor was closed, adjust the hunk headers |
| 902 | and apply the patch to the index. |
| 903 | </p> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 904 | <div class="paragraph"><p>The intent of this option is to pick and choose lines of the patch to |
| 905 | apply, or even to modify the contents of lines to be staged. This can be |
| 906 | quicker and more flexible than using the interactive hunk selector. |
| 907 | However, it is easy to confuse oneself and create a patch that does not |
| 908 | apply to the index. See EDITING PATCHES below.</p></div> |
Junio C Hamano | 52ba295 | 2009-05-18 17:43:02 | [diff] [blame] | 909 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 910 | <dt class="hdlist1"> |
Junio C Hamano | 3d30fd5 | 2007-05-08 00:32:53 | [diff] [blame] | 911 | -u |
| 912 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 913 | <dt class="hdlist1"> |
Junio C Hamano | 00e884a | 2008-06-15 05:10:38 | [diff] [blame] | 914 | --update |
| 915 | </dt> |
Junio C Hamano | 3d30fd5 | 2007-05-08 00:32:53 | [diff] [blame] | 916 | <dd> |
| 917 | <p> |
Junio C Hamano | f66c463 | 2013-03-11 20:54:25 | [diff] [blame] | 918 | Update the index just where it already has an entry matching |
| 919 | <pathspec>. This removes as well as modifies index entries to |
| 920 | match the working tree, but adds no new files. |
Junio C Hamano | 3d30fd5 | 2007-05-08 00:32:53 | [diff] [blame] | 921 | </p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 922 | <div class="paragraph"><p>If no <pathspec> is given when <code>-u</code> option is used, all |
Junio C Hamano | 1d669b8 | 2014-03-11 21:36:00 | [diff] [blame] | 923 | tracked files in the entire working tree are updated (old versions |
| 924 | of Git used to limit the update to the current directory and its |
| 925 | subdirectories).</p></div> |
Junio C Hamano | 3d30fd5 | 2007-05-08 00:32:53 | [diff] [blame] | 926 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 927 | <dt class="hdlist1"> |
Junio C Hamano | 5ba2c22 | 2008-07-21 04:33:46 | [diff] [blame] | 928 | -A |
| 929 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 930 | <dt class="hdlist1"> |
Junio C Hamano | 5ba2c22 | 2008-07-21 04:33:46 | [diff] [blame] | 931 | --all |
| 932 | </dt> |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 933 | <dt class="hdlist1"> |
| 934 | --no-ignore-removal |
| 935 | </dt> |
Junio C Hamano | 5ba2c22 | 2008-07-21 04:33:46 | [diff] [blame] | 936 | <dd> |
| 937 | <p> |
Junio C Hamano | f66c463 | 2013-03-11 20:54:25 | [diff] [blame] | 938 | Update the index not only where the working tree has a file |
| 939 | matching <pathspec> but also where the index already has an |
Junio C Hamano | 2567b32 | 2019-02-05 23:33:56 | [diff] [blame] | 940 | entry. This adds, modifies, and removes index entries to |
Junio C Hamano | f66c463 | 2013-03-11 20:54:25 | [diff] [blame] | 941 | match the working tree. |
Junio C Hamano | 5ba2c22 | 2008-07-21 04:33:46 | [diff] [blame] | 942 | </p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 943 | <div class="paragraph"><p>If no <pathspec> is given when <code>-A</code> option is used, all |
Junio C Hamano | 1d669b8 | 2014-03-11 21:36:00 | [diff] [blame] | 944 | files in the entire working tree are updated (old versions |
| 945 | of Git used to limit the update to the current directory and its |
| 946 | subdirectories).</p></div> |
Junio C Hamano | 5ba2c22 | 2008-07-21 04:33:46 | [diff] [blame] | 947 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 948 | <dt class="hdlist1"> |
Junio C Hamano | c79bc67 | 2013-04-22 19:12:47 | [diff] [blame] | 949 | --no-all |
| 950 | </dt> |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 951 | <dt class="hdlist1"> |
| 952 | --ignore-removal |
| 953 | </dt> |
Junio C Hamano | c79bc67 | 2013-04-22 19:12:47 | [diff] [blame] | 954 | <dd> |
| 955 | <p> |
| 956 | Update the index by adding new files that are unknown to the |
| 957 | index and files modified in the working tree, but ignore |
| 958 | files that have been removed from the working tree. This |
| 959 | option is a no-op when no <pathspec> is used. |
| 960 | </p> |
Junio C Hamano | 1d669b8 | 2014-03-11 21:36:00 | [diff] [blame] | 961 | <div class="paragraph"><p>This option is primarily to help users who are used to older |
| 962 | versions of Git, whose "git add <pathspec>…" was a synonym |
| 963 | for "git add --no-all <pathspec>…", i.e. ignored removed files.</p></div> |
Junio C Hamano | c79bc67 | 2013-04-22 19:12:47 | [diff] [blame] | 964 | </dd> |
| 965 | <dt class="hdlist1"> |
Junio C Hamano | 845880c | 2008-10-21 19:04:45 | [diff] [blame] | 966 | -N |
| 967 | </dt> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 968 | <dt class="hdlist1"> |
Junio C Hamano | 845880c | 2008-10-21 19:04:45 | [diff] [blame] | 969 | --intent-to-add |
| 970 | </dt> |
| 971 | <dd> |
| 972 | <p> |
| 973 | Record only the fact that the path will be added later. An entry |
| 974 | for the path is placed in the index with no content. This is |
| 975 | useful for, among other things, showing the unstaged content of |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 976 | such files with <code>git diff</code> and committing them with <code>git commit |
| 977 | -a</code>. |
Junio C Hamano | 845880c | 2008-10-21 19:04:45 | [diff] [blame] | 978 | </p> |
| 979 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 980 | <dt class="hdlist1"> |
Junio C Hamano | 024b6c6 | 2007-08-14 09:43:08 | [diff] [blame] | 981 | --refresh |
| 982 | </dt> |
| 983 | <dd> |
| 984 | <p> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 985 | Don’t add the file(s), but only refresh their stat() |
Junio C Hamano | 024b6c6 | 2007-08-14 09:43:08 | [diff] [blame] | 986 | information in the index. |
| 987 | </p> |
| 988 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 989 | <dt class="hdlist1"> |
Junio C Hamano | feeb1be | 2008-05-22 00:53:35 | [diff] [blame] | 990 | --ignore-errors |
| 991 | </dt> |
| 992 | <dd> |
| 993 | <p> |
| 994 | If some files could not be added because of errors indexing |
| 995 | them, do not abort the operation, but continue adding the |
| 996 | others. The command shall still exit with non-zero status. |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 997 | The configuration variable <code>add.ignoreErrors</code> can be set to |
Junio C Hamano | b77f819 | 2011-05-05 01:30:38 | [diff] [blame] | 998 | true to make this the default behaviour. |
Junio C Hamano | feeb1be | 2008-05-22 00:53:35 | [diff] [blame] | 999 | </p> |
| 1000 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1001 | <dt class="hdlist1"> |
Junio C Hamano | afabd32 | 2010-07-19 20:26:15 | [diff] [blame] | 1002 | --ignore-missing |
| 1003 | </dt> |
| 1004 | <dd> |
| 1005 | <p> |
| 1006 | This option can only be used together with --dry-run. By using |
| 1007 | this option the user can check if any of the given files would |
| 1008 | be ignored, no matter if they are already present in the work |
| 1009 | tree or not. |
| 1010 | </p> |
| 1011 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1012 | <dt class="hdlist1"> |
Junio C Hamano | 535c65c | 2017-06-24 22:51:58 | [diff] [blame] | 1013 | --no-warn-embedded-repo |
| 1014 | </dt> |
| 1015 | <dd> |
| 1016 | <p> |
| 1017 | By default, <code>git add</code> will warn when adding an embedded |
| 1018 | repository to the index without using <code>git submodule add</code> to |
| 1019 | create an entry in <code>.gitmodules</code>. This option will suppress the |
| 1020 | warning (e.g., if you are manually performing operations on |
| 1021 | submodules). |
| 1022 | </p> |
| 1023 | </dd> |
| 1024 | <dt class="hdlist1"> |
Junio C Hamano | 4886c77 | 2017-11-27 03:33:28 | [diff] [blame] | 1025 | --renormalize |
| 1026 | </dt> |
| 1027 | <dd> |
| 1028 | <p> |
| 1029 | Apply the "clean" process freshly to all tracked files to |
| 1030 | forcibly add them again to the index. This is useful after |
| 1031 | changing <code>core.autocrlf</code> configuration or the <code>text</code> attribute |
| 1032 | in order to correct files added with wrong CRLF/LF line endings. |
Junio C Hamano | 04495a1 | 2022-08-18 21:13:08 | [diff] [blame] | 1033 | This option implies <code>-u</code>. Lone CR characters are untouched, thus |
| 1034 | while a CRLF cleans to LF, a CRCRLF sequence is only partially |
| 1035 | cleaned to CRLF. |
Junio C Hamano | 4886c77 | 2017-11-27 03:33:28 | [diff] [blame] | 1036 | </p> |
| 1037 | </dd> |
| 1038 | <dt class="hdlist1"> |
Junio C Hamano | 5380048 | 2016-09-21 23:26:43 | [diff] [blame] | 1039 | --chmod=(+|-)x |
| 1040 | </dt> |
| 1041 | <dd> |
| 1042 | <p> |
| 1043 | Override the executable bit of the added files. The executable |
| 1044 | bit is only changed in the index, the files on disk are left |
| 1045 | unchanged. |
| 1046 | </p> |
| 1047 | </dd> |
| 1048 | <dt class="hdlist1"> |
Junio C Hamano | 2f5a989 | 2019-12-25 21:12:55 | [diff] [blame] | 1049 | --pathspec-from-file=<file> |
| 1050 | </dt> |
| 1051 | <dd> |
| 1052 | <p> |
| 1053 | Pathspec is passed in <code><file></code> instead of commandline args. If |
| 1054 | <code><file></code> is exactly <code>-</code> then standard input is used. Pathspec |
| 1055 | elements are separated by LF or CR/LF. Pathspec elements can be |
| 1056 | quoted as explained for the configuration variable <code>core.quotePath</code> |
| 1057 | (see <a href="git-config.html">git-config(1)</a>). See also <code>--pathspec-file-nul</code> and |
| 1058 | global <code>--literal-pathspecs</code>. |
| 1059 | </p> |
| 1060 | </dd> |
| 1061 | <dt class="hdlist1"> |
| 1062 | --pathspec-file-nul |
| 1063 | </dt> |
| 1064 | <dd> |
| 1065 | <p> |
| 1066 | Only meaningful with <code>--pathspec-from-file</code>. Pathspec elements are |
| 1067 | separated with NUL character and all other characters are taken |
| 1068 | literally (including newlines and quotes). |
| 1069 | </p> |
| 1070 | </dd> |
| 1071 | <dt class="hdlist1"> |
Junio C Hamano | 1bb569e | 2006-05-05 23:14:25 | [diff] [blame] | 1072 | -- |
Junio C Hamano | 7e9f6b7 | 2006-02-22 10:44:55 | [diff] [blame] | 1073 | </dt> |
| 1074 | <dd> |
| 1075 | <p> |
| 1076 | This option can be used to separate command-line options from |
| 1077 | the list of files, (useful when filenames might be mistaken |
| 1078 | for command-line options). |
| 1079 | </p> |
| 1080 | </dd> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1081 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1082 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1083 | </div> |
| 1084 | <div class="sect1"> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1085 | <h2 id="_examples">EXAMPLES</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1086 | <div class="sectionbody"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1087 | <div class="ulist"><ul> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1088 | <li> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1089 | <p> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1090 | Adds content from all <code>*.txt</code> files under <code>Documentation</code> directory |
Junio C Hamano | 2567b32 | 2019-02-05 23:33:56 | [diff] [blame] | 1091 | and its subdirectories: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1092 | </p> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1093 | <div class="listingblock"> |
| 1094 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1095 | <pre><code>$ git add Documentation/\*.txt</code></pre> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1096 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1097 | <div class="paragraph"><p>Note that the asterisk <code>*</code> is quoted from the shell in this |
Junio C Hamano | f8a7922 | 2009-03-01 08:02:50 | [diff] [blame] | 1098 | example; this lets the command include the files from |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1099 | subdirectories of <code>Documentation/</code> directory.</p></div> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1100 | </li> |
| 1101 | <li> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1102 | <p> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1103 | Considers adding content from all git-*.sh scripts: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1104 | </p> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1105 | <div class="listingblock"> |
| 1106 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1107 | <pre><code>$ git add git-*.sh</code></pre> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1108 | </div></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1109 | <div class="paragraph"><p>Because this example lets the shell expand the asterisk (i.e. you are |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1110 | listing the files explicitly), it does not consider |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1111 | <code>subdir/git-foo.sh</code>.</p></div> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1112 | </li> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1113 | </ul></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1114 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1115 | </div> |
| 1116 | <div class="sect1"> |
Junio C Hamano | b9d9d90 | 2018-05-23 07:07:42 | [diff] [blame] | 1117 | <h2 id="_interactive_mode">INTERACTIVE MODE</h2> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1118 | <div class="sectionbody"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1119 | <div class="paragraph"><p>When the command enters the interactive mode, it shows the |
Junio C Hamano | f9771f6 | 2007-01-17 17:42:30 | [diff] [blame] | 1120 | output of the <em>status</em> subcommand, and then goes into its |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1121 | interactive command loop.</p></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1122 | <div class="paragraph"><p>The command loop shows the list of subcommands available, and |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1123 | gives a prompt "What now> ". In general, when the prompt ends |
| 1124 | with a single <em>></em>, you can pick only one of the choices given |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1125 | and type return, like this:</p></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1126 | <div class="listingblock"> |
| 1127 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1128 | <pre><code> *** Commands *** |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1129 | 1: status 2: update 3: revert 4: add untracked |
| 1130 | 5: patch 6: diff 7: quit 8: help |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1131 | What now> 1</code></pre> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1132 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1133 | <div class="paragraph"><p>You also could say <code>s</code> or <code>sta</code> or <code>status</code> above as long as the |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1134 | choice is unique.</p></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1135 | <div class="paragraph"><p>The main command loop has 6 subcommands (plus help and quit).</p></div> |
| 1136 | <div class="dlist"><dl> |
| 1137 | <dt class="hdlist1"> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1138 | status |
| 1139 | </dt> |
| 1140 | <dd> |
| 1141 | <p> |
| 1142 | This shows the change between HEAD and index (i.e. what will be |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1143 | committed if you say <code>git commit</code>), and between index and |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1144 | working tree files (i.e. what you could stage further before |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1145 | <code>git commit</code> using <code>git add</code>) for each path. A sample output |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1146 | looks like this: |
| 1147 | </p> |
| 1148 | <div class="listingblock"> |
| 1149 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1150 | <pre><code> staged unstaged path |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1151 | 1: binary nothing foo.png |
Junio C Hamano | 3583c5c | 2023-02-22 23:31:59 | [diff] [blame] | 1152 | 2: +403/-35 +1/-1 add-interactive.c</code></pre> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1153 | </div></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1154 | <div class="paragraph"><p>It shows that foo.png has differences from HEAD (but that is |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1155 | binary so line count cannot be shown) and there is no |
| 1156 | difference between indexed copy and the working tree |
| 1157 | version (if the working tree version were also different, |
| 1158 | <em>binary</em> would have been shown in place of <em>nothing</em>). The |
Junio C Hamano | 3583c5c | 2023-02-22 23:31:59 | [diff] [blame] | 1159 | other file, add-interactive.c, has 403 lines added |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1160 | and 35 lines deleted if you commit what is in the index, but |
| 1161 | working tree file has further modifications (one addition and |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1162 | one deletion).</p></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1163 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1164 | <dt class="hdlist1"> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1165 | update |
| 1166 | </dt> |
| 1167 | <dd> |
| 1168 | <p> |
Junio C Hamano | f8a7922 | 2009-03-01 08:02:50 | [diff] [blame] | 1169 | This shows the status information and issues an "Update>>" |
| 1170 | prompt. When the prompt ends with double <em>>></em>, you can |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1171 | make more than one selection, concatenated with whitespace or |
| 1172 | comma. Also you can say ranges. E.g. "2-5 7,9" to choose |
Junio C Hamano | 38ddcce | 2008-07-15 15:49:03 | [diff] [blame] | 1173 | 2,3,4,5,7,9 from the list. If the second number in a range is |
| 1174 | omitted, all remaining patches are taken. E.g. "7-" to choose |
| 1175 | 7,8,9 from the list. You can say <em>*</em> to choose everything. |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1176 | </p> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1177 | <div class="paragraph"><p>What you chose are then highlighted with <em>*</em>, |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1178 | like this:</p></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1179 | <div class="listingblock"> |
| 1180 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1181 | <pre><code> staged unstaged path |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1182 | 1: binary nothing foo.png |
Junio C Hamano | 3583c5c | 2023-02-22 23:31:59 | [diff] [blame] | 1183 | * 2: +403/-35 +1/-1 add-interactive.c</code></pre> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1184 | </div></div> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1185 | <div class="paragraph"><p>To remove selection, prefix the input with <code>-</code> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1186 | like this:</p></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1187 | <div class="listingblock"> |
| 1188 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1189 | <pre><code>Update>> -2</code></pre> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1190 | </div></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1191 | <div class="paragraph"><p>After making the selection, answer with an empty line to stage the |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1192 | contents of working tree files for selected paths in the index.</p></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1193 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1194 | <dt class="hdlist1"> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1195 | revert |
| 1196 | </dt> |
| 1197 | <dd> |
| 1198 | <p> |
| 1199 | This has a very similar UI to <em>update</em>, and the staged |
| 1200 | information for selected paths are reverted to that of the |
| 1201 | HEAD version. Reverting new paths makes them untracked. |
| 1202 | </p> |
| 1203 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1204 | <dt class="hdlist1"> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1205 | add untracked |
| 1206 | </dt> |
| 1207 | <dd> |
| 1208 | <p> |
| 1209 | This has a very similar UI to <em>update</em> and |
| 1210 | <em>revert</em>, and lets you add untracked paths to the index. |
| 1211 | </p> |
| 1212 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1213 | <dt class="hdlist1"> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1214 | patch |
| 1215 | </dt> |
| 1216 | <dd> |
| 1217 | <p> |
Junio C Hamano | f8a7922 | 2009-03-01 08:02:50 | [diff] [blame] | 1218 | This lets you choose one path out of a <em>status</em> like selection. |
| 1219 | After choosing the path, it presents the diff between the index |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1220 | and the working tree file and asks you if you want to stage |
Junio C Hamano | 9eb5835 | 2011-05-11 20:09:24 | [diff] [blame] | 1221 | the change of each hunk. You can select one of the following |
| 1222 | options and type return: |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1223 | </p> |
| 1224 | <div class="literalblock"> |
| 1225 | <div class="content"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1226 | <pre><code>y - stage this hunk |
Junio C Hamano | 8760ea6 | 2008-03-14 08:58:45 | [diff] [blame] | 1227 | n - do not stage this hunk |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 1228 | q - quit; do not stage this hunk or any of the remaining ones |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 1229 | a - stage this hunk and all later hunks in the file |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 1230 | d - do not stage this hunk or any of the later hunks in the file |
Junio C Hamano | 3bd66e9 | 2009-04-18 06:17:56 | [diff] [blame] | 1231 | g - select a hunk to go to |
| 1232 | / - search for a hunk matching the given regex |
Junio C Hamano | 8760ea6 | 2008-03-14 08:58:45 | [diff] [blame] | 1233 | j - leave this hunk undecided, see next undecided hunk |
| 1234 | J - leave this hunk undecided, see next hunk |
| 1235 | k - leave this hunk undecided, see previous undecided hunk |
| 1236 | K - leave this hunk undecided, see previous hunk |
Junio C Hamano | e0facb9 | 2007-12-05 10:59:48 | [diff] [blame] | 1237 | s - split the current hunk into smaller hunks |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1238 | e - manually edit the current hunk |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1239 | ? - print help</code></pre> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1240 | </div></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1241 | <div class="paragraph"><p>After deciding the fate for all hunks, if there is any hunk |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1242 | that was chosen, the index is updated with the selected hunks.</p></div> |
Junio C Hamano | 9eb5835 | 2011-05-11 20:09:24 | [diff] [blame] | 1243 | <div class="paragraph"><p>You can omit having to type return here, by setting the configuration |
Junio C Hamano | 322c624 | 2015-03-23 21:32:46 | [diff] [blame] | 1244 | variable <code>interactive.singleKey</code> to <code>true</code>.</p></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1245 | </dd> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1246 | <dt class="hdlist1"> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1247 | diff |
| 1248 | </dt> |
| 1249 | <dd> |
| 1250 | <p> |
| 1251 | This lets you review what will be committed (i.e. between |
| 1252 | HEAD and index). |
| 1253 | </p> |
| 1254 | </dd> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1255 | </dl></div> |
Junio C Hamano | 17bbaca | 2006-12-25 11:36:31 | [diff] [blame] | 1256 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1257 | </div> |
| 1258 | <div class="sect1"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1259 | <h2 id="_editing_patches">EDITING PATCHES</h2> |
| 1260 | <div class="sectionbody"> |
Junio C Hamano | c14e6ad | 2014-10-31 20:25:53 | [diff] [blame] | 1261 | <div class="paragraph"><p>Invoking <code>git add -e</code> or selecting <code>e</code> from the interactive hunk |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1262 | selector will open a patch in your editor; after the editor exits, the |
| 1263 | result is applied to the index. You are free to make arbitrary changes |
| 1264 | to the patch, but note that some changes may have confusing results, or |
| 1265 | even result in a patch that cannot be applied. If you want to abort the |
| 1266 | operation entirely (i.e., stage nothing new in the index), simply delete |
| 1267 | all lines of the patch. The list below describes some common things you |
| 1268 | may see in a patch, and which editing operations make sense on them.</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1269 | <div class="openblock"> |
| 1270 | <div class="content"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1271 | <div class="dlist"><dl> |
| 1272 | <dt class="hdlist1"> |
| 1273 | added content |
| 1274 | </dt> |
| 1275 | <dd> |
| 1276 | <p> |
| 1277 | Added content is represented by lines beginning with "+". You can |
| 1278 | prevent staging any addition lines by deleting them. |
| 1279 | </p> |
| 1280 | </dd> |
| 1281 | <dt class="hdlist1"> |
| 1282 | removed content |
| 1283 | </dt> |
| 1284 | <dd> |
| 1285 | <p> |
| 1286 | Removed content is represented by lines beginning with "-". You can |
| 1287 | prevent staging their removal by converting the "-" to a " " (space). |
| 1288 | </p> |
| 1289 | </dd> |
| 1290 | <dt class="hdlist1"> |
| 1291 | modified content |
| 1292 | </dt> |
| 1293 | <dd> |
| 1294 | <p> |
| 1295 | Modified content is represented by "-" lines (removing the old content) |
| 1296 | followed by "+" lines (adding the replacement content). You can |
| 1297 | prevent staging the modification by converting "-" lines to " ", and |
| 1298 | removing "+" lines. Beware that modifying only half of the pair is |
| 1299 | likely to introduce confusing changes to the index. |
| 1300 | </p> |
| 1301 | </dd> |
| 1302 | </dl></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1303 | </div></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1304 | <div class="paragraph"><p>There are also more complex operations that can be performed. But beware |
| 1305 | that because the patch is applied only to the index and not the working |
| 1306 | tree, the working tree will appear to "undo" the change in the index. |
Junio C Hamano | 7165bf7 | 2011-01-04 22:06:18 | [diff] [blame] | 1307 | For example, introducing a new line into the index that is in neither |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1308 | the HEAD nor the working tree will stage the new line for commit, but |
| 1309 | the line will appear to be reverted in the working tree.</p></div> |
| 1310 | <div class="paragraph"><p>Avoid using these constructs, or do so with extreme caution.</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1311 | <div class="openblock"> |
| 1312 | <div class="content"> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1313 | <div class="dlist"><dl> |
| 1314 | <dt class="hdlist1"> |
| 1315 | removing untouched content |
| 1316 | </dt> |
| 1317 | <dd> |
| 1318 | <p> |
| 1319 | Content which does not differ between the index and working tree may be |
| 1320 | shown on context lines, beginning with a " " (space). You can stage |
| 1321 | context lines for removal by converting the space to a "-". The |
| 1322 | resulting working tree file will appear to re-add the content. |
| 1323 | </p> |
| 1324 | </dd> |
| 1325 | <dt class="hdlist1"> |
| 1326 | modifying existing content |
| 1327 | </dt> |
| 1328 | <dd> |
| 1329 | <p> |
| 1330 | One can also modify context lines by staging them for removal (by |
| 1331 | converting " " to "-") and adding a "+" line with the new content. |
| 1332 | Similarly, one can modify "+" lines for existing additions or |
| 1333 | modifications. In all cases, the new modification will appear reverted |
| 1334 | in the working tree. |
| 1335 | </p> |
| 1336 | </dd> |
| 1337 | <dt class="hdlist1"> |
| 1338 | new content |
| 1339 | </dt> |
| 1340 | <dd> |
| 1341 | <p> |
| 1342 | You may also add new content that does not exist in the patch; simply |
| 1343 | add new lines, each starting with "+". The addition will appear |
| 1344 | reverted in the working tree. |
| 1345 | </p> |
| 1346 | </dd> |
| 1347 | </dl></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1348 | </div></div> |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1349 | <div class="paragraph"><p>There are also several operations which should be avoided entirely, as |
| 1350 | they will make the patch impossible to apply:</p></div> |
| 1351 | <div class="ulist"><ul> |
| 1352 | <li> |
| 1353 | <p> |
| 1354 | adding context (" ") or removal ("-") lines |
| 1355 | </p> |
| 1356 | </li> |
| 1357 | <li> |
| 1358 | <p> |
| 1359 | deleting context or removal lines |
| 1360 | </p> |
| 1361 | </li> |
| 1362 | <li> |
| 1363 | <p> |
| 1364 | modifying the contents of context or removal lines |
| 1365 | </p> |
| 1366 | </li> |
| 1367 | </ul></div> |
| 1368 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1369 | </div> |
| 1370 | <div class="sect1"> |
Junio C Hamano | ba8baee | 2022-09-14 20:25:23 | [diff] [blame] | 1371 | <h2 id="_configuration">CONFIGURATION</h2> |
| 1372 | <div class="sectionbody"> |
| 1373 | <div class="paragraph"><p>Everything below this line in this section is selectively included |
| 1374 | from the <a href="git-config.html">git-config(1)</a> documentation. The content is the same |
| 1375 | as what’s found there:</p></div> |
| 1376 | <div class="dlist"><dl> |
| 1377 | <dt class="hdlist1"> |
| 1378 | add.ignoreErrors |
| 1379 | </dt> |
| 1380 | <dt class="hdlist1"> |
| 1381 | add.ignore-errors (deprecated) |
| 1382 | </dt> |
| 1383 | <dd> |
| 1384 | <p> |
| 1385 | Tells <em>git add</em> to continue adding files when some files cannot be |
| 1386 | added due to indexing errors. Equivalent to the <code>--ignore-errors</code> |
| 1387 | option of <a href="git-add.html">git-add(1)</a>. <code>add.ignore-errors</code> is deprecated, |
| 1388 | as it does not follow the usual naming convention for configuration |
| 1389 | variables. |
| 1390 | </p> |
| 1391 | </dd> |
| 1392 | <dt class="hdlist1"> |
| 1393 | add.interactive.useBuiltin |
| 1394 | </dt> |
| 1395 | <dd> |
| 1396 | <p> |
Junio C Hamano | 3583c5c | 2023-02-22 23:31:59 | [diff] [blame] | 1397 | Unused configuration variable. Used in Git versions v2.25.0 to |
| 1398 | v2.36.0 to enable the built-in version of <a href="git-add.html">git-add(1)</a>'s |
| 1399 | interactive mode, which then became the default in Git |
| 1400 | versions v2.37.0 to v2.39.0. |
Junio C Hamano | ba8baee | 2022-09-14 20:25:23 | [diff] [blame] | 1401 | </p> |
| 1402 | </dd> |
| 1403 | </dl></div> |
| 1404 | </div> |
| 1405 | </div> |
| 1406 | <div class="sect1"> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1407 | <h2 id="_see_also">SEE ALSO</h2> |
Junio C Hamano | 2bb1310 | 2006-03-06 07:10:21 | [diff] [blame] | 1408 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1409 | <div class="paragraph"><p><a href="git-status.html">git-status(1)</a> |
| 1410 | <a href="git-rm.html">git-rm(1)</a> |
| 1411 | <a href="git-reset.html">git-reset(1)</a> |
| 1412 | <a href="git-mv.html">git-mv(1)</a> |
| 1413 | <a href="git-commit.html">git-commit(1)</a> |
| 1414 | <a href="git-update-index.html">git-update-index(1)</a></p></div> |
Junio C Hamano | 2bb1310 | 2006-03-06 07:10:21 | [diff] [blame] | 1415 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1416 | </div> |
| 1417 | <div class="sect1"> |
Junio C Hamano | 46a38aa | 2008-07-14 03:13:27 | [diff] [blame] | 1418 | <h2 id="_git">GIT</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1419 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1420 | <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] | 1421 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 1422 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1423 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 1424 | <div id="footnotes"><hr /></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1425 | <div id="footer"> |
| 1426 | <div id="footer-text"> |
Junio C Hamano | 2ef0ba3 | 2018-01-26 23:13:53 | [diff] [blame] | 1427 | Last updated |
Junio C Hamano | a7b2c10 | 2023-06-13 21:00:15 | [diff] [blame] | 1428 | 2023-02-22 15:29:29 PST |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1429 | </div> |
| 1430 | </div> |
| 1431 | </body> |
| 1432 | </html> |