Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Downing <bdowning@lavos.net>2007-08-17 02:56:08 +0400
committerJunio C Hamano <gitster@pobox.com>2007-08-17 03:44:19 +0400
commitd1d028ea16af27158f5d77154cfa60dbd9143314 (patch)
treef6a663241b819a963a47efbc735c04a52c6ef61b /Documentation
parent19b28bf5454380f9f65063e8bc3cdee669e731a9 (diff)
Clarify actual behavior of 'git add' and ignored files
Signed-off-by: Brian Downing <bdowning@lavos.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-add.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index dee38f8250..3383aca9af 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -28,10 +28,12 @@ you must run 'git add' again to add the new content to the index.
The 'git status' command can be used to obtain a summary of which
files have changes that are staged for the next commit.
-The 'add' command can be used to add ignored files with `-f` (force)
-option, but they have to be explicitly and exactly specified from the
-command line. File globbing and recursive behaviour do not add ignored
-files.
+The 'git add' command will not add ignored files by default. If any
+ignored files were explicitly specified on the command line, 'git add'
+will fail with a list of ignored files. Ignored files reached by
+directory recursion or filename globbing will be silently ignored.
+The 'add' command can be used to add ignored files with the `-f`
+(force) option.
Please see gitlink:git-commit[1] for alternative ways to add content to a
commit.