Skip to content

Commit 6fc4a7e

Browse files
burtogitster
authored andcommitted
git-commit.txt - mention that files listed on the command line must be known to git.
Signed-off-by: Mark Burton <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c2e6385 commit 6fc4a7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-commit.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ The content to be added can be specified in several ways:
2929

3030
3. by listing files as arguments to the 'commit' command, in which
3131
case the commit will ignore changes staged in the index, and instead
32-
record the current content of the listed files;
32+
record the current content of the listed files (which must already
33+
be known to git);
3334

3435
4. by using the -a switch with the 'commit' command to automatically
3536
"add" changes from all known files (i.e. all files that are already

0 commit comments

Comments
 (0)