logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

git-add.1 (20006B)


  1. '\" t
  2. .\" Title: git-add
  3. .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
  5. .\" Date: 2025-03-14
  6. .\" Manual: Git Manual
  7. .\" Source: Git 2.49.0
  8. .\" Language: English
  9. .\"
  10. .TH "GIT\-ADD" "1" "2025-03-14" "Git 2\&.49\&.0" "Git Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git-add \- Add file contents to the index
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fBgit\fR \fBadd\fR [\fB\-\-verbose\fR | \fB\-v\fR] [\fB\-\-dry\-run\fR | \fB\-n\fR] [\fB\-\-force\fR | \fB\-f\fR] [\fB\-\-interactive\fR | \fB\-i\fR] [\fB\-\-patch\fR | \fB\-p\fR]
  36. [\fB\-\-edit\fR | \fB\-e\fR] [\fB\-\-\fR[\fBno\-\fR]\fBall\fR | \fB\-A\fR | \fB\-\-\fR[\fBno\-\fR]\fBignore\-removal\fR | [\fB\-\-update\fR | \fB\-u\fR]] [\fB\-\-sparse\fR]
  37. [\fB\-\-intent\-to\-add\fR | \fB\-N\fR] [\fB\-\-refresh\fR] [\fB\-\-ignore\-errors\fR] [\fB\-\-ignore\-missing\fR] [\fB\-\-renormalize\fR]
  38. [\fB\-\-chmod=\fR(\fB+\fR|\fB\-\fR)\fBx\fR] [\fB\-\-pathspec\-from\-file=\fR\fI<file>\fR [\fB\-\-pathspec\-file\-nul\fR]]
  39. [\fB\-\-\fR] [\fI<pathspec>\fR\&...\:]
  40. .fi
  41. .SH "DESCRIPTION"
  42. .sp
  43. This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit\&. It typically adds the current content of existing paths as a whole, but with some options it can also be used to add content with only part of the changes made to the working tree files applied, or remove paths that do not exist in the working tree anymore\&.
  44. .sp
  45. The "index" holds a snapshot of the content of the working tree, and it is this snapshot that is taken as the contents of the next commit\&. Thus after making any changes to the working tree, and before running the commit command, you must use the \fBadd\fR command to add any new or modified files to the index\&.
  46. .sp
  47. This command can be performed multiple times before a commit\&. It only adds the content of the specified file(s) at the time the add command is run; if you want subsequent changes included in the next commit, then you must run \fBgit\fR \fBadd\fR again to add the new content to the index\&.
  48. .sp
  49. The \fBgit\fR \fBstatus\fR command can be used to obtain a summary of which files have changes that are staged for the next commit\&.
  50. .sp
  51. The \fBgit\fR \fBadd\fR command will not add ignored files by default\&. If any ignored files were explicitly specified on the command line, \fBgit\fR \fBadd\fR will fail with a list of ignored files\&. Ignored files reached by directory recursion or filename globbing performed by Git (quote your globs before the shell) will be silently ignored\&. The \fBgit\fR \fBadd\fR command can be used to add ignored files with the \fB\-f\fR (force) option\&.
  52. .sp
  53. Please see \fBgit-commit\fR(1) for alternative ways to add content to a commit\&.
  54. .SH "OPTIONS"
  55. .PP
  56. \fI<pathspec>\fR\&.\&.\&.
  57. .RS 4
  58. Files to add content from\&. Fileglobs (e\&.g\&. *\&.\fBc\fR) can be given to add all matching files\&. Also a leading directory name (e\&.g\&.
  59. \fBdir\fR
  60. to add
  61. \fBdir/file1\fR
  62. and
  63. \fBdir/file2\fR) can be given to update the index to match the current state of the directory as a whole (e\&.g\&. specifying
  64. \fBdir\fR
  65. will record not just a file
  66. \fBdir/file1\fR
  67. modified in the working tree, a file
  68. \fBdir/file2\fR
  69. added to the working tree, but also a file
  70. \fBdir/file3\fR
  71. removed from the working tree)\&. Note that older versions of Git used to ignore removed files; use
  72. \fB\-\-no\-all\fR
  73. option if you want to add modified or new files but ignore removed ones\&.
  74. .sp
  75. For more details about the
  76. \fI<pathspec>\fR
  77. syntax, see the
  78. \fIpathspec\fR
  79. entry in
  80. \fBgitglossary\fR(7)\&.
  81. .RE
  82. .PP
  83. \fB\-n\fR, \fB\-\-dry\-run\fR
  84. .RS 4
  85. Don\(cqt actually add the file(s), just show if they exist and/or will be ignored\&.
  86. .RE
  87. .PP
  88. \fB\-v\fR, \fB\-\-verbose\fR
  89. .RS 4
  90. Be verbose\&.
  91. .RE
  92. .PP
  93. \fB\-f\fR, \fB\-\-force\fR
  94. .RS 4
  95. Allow adding otherwise ignored files\&.
  96. .RE
  97. .PP
  98. \fB\-\-sparse\fR
  99. .RS 4
  100. Allow updating index entries outside of the sparse\-checkout cone\&. Normally,
  101. \fBgit\fR
  102. \fBadd\fR
  103. refuses to update index entries whose paths do not fit within the sparse\-checkout cone, since those files might be removed from the working tree without warning\&. See
  104. \fBgit-sparse-checkout\fR(1)
  105. for more details\&.
  106. .RE
  107. .PP
  108. \fB\-i\fR, \fB\-\-interactive\fR
  109. .RS 4
  110. Add modified contents in the working tree interactively to the index\&. Optional path arguments may be supplied to limit operation to a subset of the working tree\&. See
  111. \(lqInteractive mode\(rq
  112. for details\&.
  113. .RE
  114. .PP
  115. \fB\-p\fR, \fB\-\-patch\fR
  116. .RS 4
  117. Interactively choose hunks of patch between the index and the work tree and add them to the index\&. This gives the user a chance to review the difference before adding modified contents to the index\&.
  118. .sp
  119. This effectively runs
  120. \fBadd\fR
  121. \fB\-\-interactive\fR, but bypasses the initial command menu and directly jumps to the
  122. \fBpatch\fR
  123. subcommand\&. See
  124. \(lqInteractive mode\(rq
  125. for details\&.
  126. .RE
  127. .PP
  128. \fB\-e\fR, \fB\-\-edit\fR
  129. .RS 4
  130. Open the diff vs\&. the index in an editor and let the user edit it\&. After the editor was closed, adjust the hunk headers and apply the patch to the index\&.
  131. .sp
  132. The intent of this option is to pick and choose lines of the patch to apply, or even to modify the contents of lines to be staged\&. This can be quicker and more flexible than using the interactive hunk selector\&. However, it is easy to confuse oneself and create a patch that does not apply to the index\&. See EDITING PATCHES below\&.
  133. .RE
  134. .PP
  135. \fB\-u\fR, \fB\-\-update\fR
  136. .RS 4
  137. Update the index just where it already has an entry matching
  138. \fI<pathspec>\fR\&. This removes as well as modifies index entries to match the working tree, but adds no new files\&.
  139. .sp
  140. If no
  141. \fI<pathspec>\fR
  142. is given when
  143. \fB\-u\fR
  144. option is used, all tracked files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories)\&.
  145. .RE
  146. .PP
  147. \fB\-A\fR, \fB\-\-all\fR, \fB\-\-no\-ignore\-removal\fR
  148. .RS 4
  149. Update the index not only where the working tree has a file matching
  150. \fI<pathspec>\fR
  151. but also where the index already has an entry\&. This adds, modifies, and removes index entries to match the working tree\&.
  152. .sp
  153. If no
  154. \fI<pathspec>\fR
  155. is given when
  156. \fB\-A\fR
  157. option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories)\&.
  158. .RE
  159. .PP
  160. \fB\-\-no\-all\fR, \fB\-\-ignore\-removal\fR
  161. .RS 4
  162. Update the index by adding new files that are unknown to the index and files modified in the working tree, but ignore files that have been removed from the working tree\&. This option is a no\-op when no
  163. \fI<pathspec>\fR
  164. is used\&.
  165. .sp
  166. This option is primarily to help users who are used to older versions of Git, whose
  167. \fBgit\fR
  168. \fBadd\fR
  169. \fI<pathspec>\fR\&.\&.\&. was a synonym for
  170. \fBgit\fR
  171. \fBadd\fR
  172. \fB\-\-no\-all\fR
  173. \fI<pathspec>\fR\&.\&.\&., i\&.e\&. ignored removed files\&.
  174. .RE
  175. .PP
  176. \fB\-N\fR, \fB\-\-intent\-to\-add\fR
  177. .RS 4
  178. Record only the fact that the path will be added later\&. An entry for the path is placed in the index with no content\&. This is useful for, among other things, showing the unstaged content of such files with
  179. \fBgit\fR
  180. \fBdiff\fR
  181. and committing them with
  182. \fBgit\fR
  183. \fBcommit\fR
  184. \fB\-a\fR\&.
  185. .RE
  186. .PP
  187. \fB\-\-refresh\fR
  188. .RS 4
  189. Don\(cqt add the file(s), but only refresh their stat() information in the index\&.
  190. .RE
  191. .PP
  192. \fB\-\-ignore\-errors\fR
  193. .RS 4
  194. If some files could not be added because of errors indexing them, do not abort the operation, but continue adding the others\&. The command shall still exit with non\-zero status\&. The configuration variable
  195. \fBadd\&.ignoreErrors\fR
  196. can be set to true to make this the default behaviour\&.
  197. .RE
  198. .PP
  199. \fB\-\-ignore\-missing\fR
  200. .RS 4
  201. This option can only be used together with
  202. \fB\-\-dry\-run\fR\&. By using this option the user can check if any of the given files would be ignored, no matter if they are already present in the work tree or not\&.
  203. .RE
  204. .PP
  205. \fB\-\-no\-warn\-embedded\-repo\fR
  206. .RS 4
  207. By default,
  208. \fBgit\fR
  209. \fBadd\fR
  210. will warn when adding an embedded repository to the index without using
  211. \fBgit\fR
  212. \fBsubmodule\fR
  213. \fBadd\fR
  214. to create an entry in \&.\fBgitmodules\fR\&. This option will suppress the warning (e\&.g\&., if you are manually performing operations on submodules)\&.
  215. .RE
  216. .PP
  217. \fB\-\-renormalize\fR
  218. .RS 4
  219. Apply the "clean" process freshly to all tracked files to forcibly add them again to the index\&. This is useful after changing
  220. \fBcore\&.autocrlf\fR
  221. configuration or the
  222. \fBtext\fR
  223. attribute in order to correct files added with wrong
  224. \fICRLF/LF\fR
  225. line endings\&. This option implies
  226. \fB\-u\fR\&. Lone CR characters are untouched, thus while a
  227. \fICRLF\fR
  228. cleans to
  229. \fILF\fR, a
  230. \fICRCRLF\fR
  231. sequence is only partially cleaned to
  232. \fICRLF\fR\&.
  233. .RE
  234. .PP
  235. \fB\-\-chmod=\fR(\fB+\fR|\fB\-\fR)\fBx\fR
  236. .RS 4
  237. Override the executable bit of the added files\&. The executable bit is only changed in the index, the files on disk are left unchanged\&.
  238. .RE
  239. .PP
  240. \fB\-\-pathspec\-from\-file=\fR\fI<file>\fR
  241. .RS 4
  242. Pathspec is passed in
  243. \fI<file>\fR
  244. instead of commandline args\&. If
  245. \fI<file>\fR
  246. is exactly
  247. \fB\-\fR
  248. then standard input is used\&. Pathspec elements are separated by
  249. \fILF\fR
  250. or
  251. \fICR/LF\fR\&. Pathspec elements can be quoted as explained for the configuration variable
  252. \fBcore\&.quotePath\fR
  253. (see
  254. \fBgit-config\fR(1))\&. See also
  255. \fB\-\-pathspec\-file\-nul\fR
  256. and global
  257. \fB\-\-literal\-pathspecs\fR\&.
  258. .RE
  259. .PP
  260. \fB\-\-pathspec\-file\-nul\fR
  261. .RS 4
  262. Only meaningful with
  263. \fB\-\-pathspec\-from\-file\fR\&. Pathspec elements are separated with
  264. \fINUL\fR
  265. character and all other characters are taken literally (including newlines and quotes)\&.
  266. .RE
  267. .PP
  268. \fB\-\-\fR
  269. .RS 4
  270. This option can be used to separate command\-line options from the list of files, (useful when filenames might be mistaken for command\-line options)\&.
  271. .RE
  272. .SH "EXAMPLES"
  273. .sp
  274. .RS 4
  275. .ie n \{\
  276. \h'-04'\(bu\h'+03'\c
  277. .\}
  278. .el \{\
  279. .sp -1
  280. .IP \(bu 2.3
  281. .\}
  282. Adds content from all *\&.\fBtxt\fR
  283. files under
  284. \fBDocumentation\fR
  285. directory and its subdirectories:
  286. .sp
  287. .if n \{\
  288. .RS 4
  289. .\}
  290. .nf
  291. $ git add Documentation/\e*\&.txt
  292. .fi
  293. .if n \{\
  294. .RE
  295. .\}
  296. .sp
  297. Note that the asterisk * is quoted from the shell in this example; this lets the command include the files from subdirectories of
  298. \fBDocumentation/\fR
  299. directory\&.
  300. .RE
  301. .sp
  302. .RS 4
  303. .ie n \{\
  304. \h'-04'\(bu\h'+03'\c
  305. .\}
  306. .el \{\
  307. .sp -1
  308. .IP \(bu 2.3
  309. .\}
  310. Considers adding content from all
  311. \fBgit\-\fR*\&.\fBsh\fR
  312. scripts:
  313. .sp
  314. .if n \{\
  315. .RS 4
  316. .\}
  317. .nf
  318. $ git add git\-*\&.sh
  319. .fi
  320. .if n \{\
  321. .RE
  322. .\}
  323. .sp
  324. Because this example lets the shell expand the asterisk (i\&.e\&. you are listing the files explicitly), it does not consider
  325. \fBsubdir/git\-foo\&.sh\fR\&.
  326. .RE
  327. .SH "INTERACTIVE MODE"
  328. .sp
  329. When the command enters the interactive mode, it shows the output of the \fIstatus\fR subcommand, and then goes into its interactive command loop\&.
  330. .sp
  331. The command loop shows the list of subcommands available, and gives a prompt "What now> "\&. In general, when the prompt ends with a single \fI>\fR, you can pick only one of the choices given and type return, like this:
  332. .sp
  333. .if n \{\
  334. .RS 4
  335. .\}
  336. .nf
  337. *** Commands ***
  338. 1: status 2: update 3: revert 4: add untracked
  339. 5: patch 6: diff 7: quit 8: help
  340. What now> 1
  341. .fi
  342. .if n \{\
  343. .RE
  344. .\}
  345. .sp
  346. You also could say \fBs\fR or \fBsta\fR or \fBstatus\fR above as long as the choice is unique\&.
  347. .sp
  348. The main command loop has 6 subcommands (plus help and quit)\&.
  349. .PP
  350. status
  351. .RS 4
  352. This shows the change between
  353. \fBHEAD\fR
  354. and index (i\&.e\&. what will be committed if you say
  355. \fBgit\fR
  356. \fBcommit\fR), and between index and working tree files (i\&.e\&. what you could stage further before
  357. \fBgit\fR
  358. \fBcommit\fR
  359. using
  360. \fBgit\fR
  361. \fBadd\fR) for each path\&. A sample output looks like this:
  362. .sp
  363. .if n \{\
  364. .RS 4
  365. .\}
  366. .nf
  367. staged unstaged path
  368. 1: binary nothing foo\&.png
  369. 2: +403/\-35 +1/\-1 add\-interactive\&.c
  370. .fi
  371. .if n \{\
  372. .RE
  373. .\}
  374. .sp
  375. It shows that
  376. \fBfoo\&.png\fR
  377. has differences from
  378. \fBHEAD\fR
  379. (but that is binary so line count cannot be shown) and there is no difference between indexed copy and the working tree version (if the working tree version were also different,
  380. \fIbinary\fR
  381. would have been shown in place of
  382. \fInothing\fR)\&. The other file,
  383. \fBadd\-interactive\&.c\fR, has 403 lines added and 35 lines deleted if you commit what is in the index, but working tree file has further modifications (one addition and one deletion)\&.
  384. .RE
  385. .PP
  386. update
  387. .RS 4
  388. This shows the status information and issues an "Update>>" prompt\&. When the prompt ends with double
  389. \fI>>\fR, you can make more than one selection, concatenated with whitespace or comma\&. Also you can say ranges\&. E\&.g\&. "2\-5 7,9" to choose 2,3,4,5,7,9 from the list\&. If the second number in a range is omitted, all remaining patches are taken\&. E\&.g\&. "7\-" to choose 7,8,9 from the list\&. You can say
  390. \fI*\fR
  391. to choose everything\&.
  392. .sp
  393. What you chose are then highlighted with
  394. \fI*\fR, like this:
  395. .sp
  396. .if n \{\
  397. .RS 4
  398. .\}
  399. .nf
  400. staged unstaged path
  401. 1: binary nothing foo\&.png
  402. * 2: +403/\-35 +1/\-1 add\-interactive\&.c
  403. .fi
  404. .if n \{\
  405. .RE
  406. .\}
  407. .sp
  408. To remove selection, prefix the input with
  409. \fB\-\fR
  410. like this:
  411. .sp
  412. .if n \{\
  413. .RS 4
  414. .\}
  415. .nf
  416. Update>> \-2
  417. .fi
  418. .if n \{\
  419. .RE
  420. .\}
  421. .sp
  422. After making the selection, answer with an empty line to stage the contents of working tree files for selected paths in the index\&.
  423. .RE
  424. .PP
  425. revert
  426. .RS 4
  427. This has a very similar UI to
  428. \fIupdate\fR, and the staged information for selected paths are reverted to that of the HEAD version\&. Reverting new paths makes them untracked\&.
  429. .RE
  430. .PP
  431. add untracked
  432. .RS 4
  433. This has a very similar UI to
  434. \fIupdate\fR
  435. and
  436. \fIrevert\fR, and lets you add untracked paths to the index\&.
  437. .RE
  438. .PP
  439. patch
  440. .RS 4
  441. This lets you choose one path out of a
  442. \fIstatus\fR
  443. like selection\&. After choosing the path, it presents the diff between the index and the working tree file and asks you if you want to stage the change of each hunk\&. You can select one of the following options and type return:
  444. .sp
  445. .if n \{\
  446. .RS 4
  447. .\}
  448. .nf
  449. y \- stage this hunk
  450. n \- do not stage this hunk
  451. q \- quit; do not stage this hunk or any of the remaining ones
  452. a \- stage this hunk and all later hunks in the file
  453. d \- do not stage this hunk or any of the later hunks in the file
  454. g \- select a hunk to go to
  455. / \- search for a hunk matching the given regex
  456. j \- leave this hunk undecided, see next undecided hunk
  457. J \- leave this hunk undecided, see next hunk
  458. k \- leave this hunk undecided, see previous undecided hunk
  459. K \- leave this hunk undecided, see previous hunk
  460. s \- split the current hunk into smaller hunks
  461. e \- manually edit the current hunk
  462. p \- print the current hunk
  463. ? \- print help
  464. .fi
  465. .if n \{\
  466. .RE
  467. .\}
  468. .sp
  469. After deciding the fate for all hunks, if there is any hunk that was chosen, the index is updated with the selected hunks\&.
  470. .sp
  471. You can omit having to type return here, by setting the configuration variable
  472. \fBinteractive\&.singleKey\fR
  473. to
  474. \fBtrue\fR\&.
  475. .RE
  476. .PP
  477. diff
  478. .RS 4
  479. This lets you review what will be committed (i\&.e\&. between
  480. \fBHEAD\fR
  481. and index)\&.
  482. .RE
  483. .SH "EDITING PATCHES"
  484. .sp
  485. Invoking \fBgit\fR \fBadd\fR \fB\-e\fR or selecting \fBe\fR from the interactive hunk selector will open a patch in your editor; after the editor exits, the result is applied to the index\&. You are free to make arbitrary changes to the patch, but note that some changes may have confusing results, or even result in a patch that cannot be applied\&. If you want to abort the operation entirely (i\&.e\&., stage nothing new in the index), simply delete all lines of the patch\&. The list below describes some common things you may see in a patch, and which editing operations make sense on them\&.
  486. .PP
  487. added content
  488. .RS 4
  489. Added content is represented by lines beginning with "+"\&. You can prevent staging any addition lines by deleting them\&.
  490. .RE
  491. .PP
  492. removed content
  493. .RS 4
  494. Removed content is represented by lines beginning with "\-"\&. You can prevent staging their removal by converting the "\-" to a " " (space)\&.
  495. .RE
  496. .PP
  497. modified content
  498. .RS 4
  499. Modified content is represented by "\-" lines (removing the old content) followed by "+" lines (adding the replacement content)\&. You can prevent staging the modification by converting "\-" lines to " ", and removing "+" lines\&. Beware that modifying only half of the pair is likely to introduce confusing changes to the index\&.
  500. .RE
  501. .sp
  502. There are also more complex operations that can be performed\&. But beware that because the patch is applied only to the index and not the working tree, the working tree will appear to "undo" the change in the index\&. For example, introducing a new line into the index that is in neither the \fBHEAD\fR nor the working tree will stage the new line for commit, but the line will appear to be reverted in the working tree\&.
  503. .sp
  504. Avoid using these constructs, or do so with extreme caution\&.
  505. .PP
  506. removing untouched content
  507. .RS 4
  508. Content which does not differ between the index and working tree may be shown on context lines, beginning with a " " (space)\&. You can stage context lines for removal by converting the space to a "\-"\&. The resulting working tree file will appear to re\-add the content\&.
  509. .RE
  510. .PP
  511. modifying existing content
  512. .RS 4
  513. One can also modify context lines by staging them for removal (by converting " " to "\-") and adding a "+" line with the new content\&. Similarly, one can modify "+" lines for existing additions or modifications\&. In all cases, the new modification will appear reverted in the working tree\&.
  514. .RE
  515. .PP
  516. new content
  517. .RS 4
  518. You may also add new content that does not exist in the patch; simply add new lines, each starting with "+"\&. The addition will appear reverted in the working tree\&.
  519. .RE
  520. .sp
  521. There are also several operations which should be avoided entirely, as they will make the patch impossible to apply:
  522. .sp
  523. .RS 4
  524. .ie n \{\
  525. \h'-04'\(bu\h'+03'\c
  526. .\}
  527. .el \{\
  528. .sp -1
  529. .IP \(bu 2.3
  530. .\}
  531. adding context (" ") or removal ("\-") lines
  532. .RE
  533. .sp
  534. .RS 4
  535. .ie n \{\
  536. \h'-04'\(bu\h'+03'\c
  537. .\}
  538. .el \{\
  539. .sp -1
  540. .IP \(bu 2.3
  541. .\}
  542. deleting context or removal lines
  543. .RE
  544. .sp
  545. .RS 4
  546. .ie n \{\
  547. \h'-04'\(bu\h'+03'\c
  548. .\}
  549. .el \{\
  550. .sp -1
  551. .IP \(bu 2.3
  552. .\}
  553. modifying the contents of context or removal lines
  554. .RE
  555. .SH "CONFIGURATION"
  556. .sp
  557. Everything below this line in this section is selectively included from the \fBgit-config\fR(1) documentation\&. The content is the same as what\(cqs found there:
  558. .PP
  559. \fBadd\&.ignoreErrors\fR, \fBadd\&.ignore\-errors\fR (deprecated)
  560. .RS 4
  561. Tells
  562. \fBgit\fR
  563. \fBadd\fR
  564. to continue adding files when some files cannot be added due to indexing errors\&. Equivalent to the
  565. \fB\-\-ignore\-errors\fR
  566. option\&.
  567. \fBadd\&.ignore\-errors\fR
  568. is deprecated, as it does not follow the usual naming convention for configuration variables\&.
  569. .RE
  570. .SH "SEE ALSO"
  571. .sp
  572. \fBgit-status\fR(1) \fBgit-rm\fR(1) \fBgit-reset\fR(1) \fBgit-mv\fR(1) \fBgit-commit\fR(1) \fBgit-update-index\fR(1)
  573. .SH "GIT"
  574. .sp
  575. Part of the \fBgit\fR(1) suite