Skip to content

Commit 845ae27

Browse files
sbejarJunio C Hamano
authored andcommitted
Document that "git add" only adds non-ignored files.
Signed-off-by: Santi Béjar <sbejar@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 288c038 commit 845ae27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git-add.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ DESCRIPTION
1414
A simple wrapper for git-update-index to add files to the index,
1515
for people used to do "cvs add".
1616

17+
It only adds non-ignored files, to add ignored files use
18+
"git update-index --add".
1719

1820
OPTIONS
1921
-------
2022
<file>...::
21-
Files to add to the index.
23+
Files to add to the index (see gitlink:git-ls-files[1]).
2224

2325
-n::
2426
Don't actually add the file(s), just show if they exist.
@@ -68,6 +70,7 @@ git-add git-*.sh::
6870
See Also
6971
--------
7072
gitlink:git-rm[1]
73+
gitlink:git-ls-files[1]
7174

7275
Author
7376
------

0 commit comments

Comments
 (0)