From: Jonathan Nieder Date: Wed, 6 Aug 2008 21:22:00 +0000 (-0500) Subject: Documentation: user-manual: "git commit -a" doesn't motivate .gitignore X-Git-Tag: v1.6.0-rc3~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7be73ae94e6dac3d1c41268a13b02ff7203c0631;p=thirdparty%2Fgit.git Documentation: user-manual: "git commit -a" doesn't motivate .gitignore "git commit -a" ignores untracked files and follows all tracked files, regardless of whether they are listed in .gitignore. So don't use it to motivate gitignore. Signed-off-by: Jonathan Nieder Acked-by: J. Bruce Fields Signed-off-by: Junio C Hamano --- diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index 43f4e392fd..f421689942 100644 --- a/Documentation/user-manual.txt +++ b/Documentation/user-manual.txt @@ -1128,8 +1128,8 @@ This typically includes files generated by a build process or temporary backup files made by your editor. Of course, 'not' tracking files with git is just a matter of 'not' calling "`git-add`" on them. But it quickly becomes annoying to have these untracked files lying around; e.g. they make -"`git add .`" and "`git commit -a`" practically useless, and they keep -showing up in the output of "`git status`". +"`git add .`" practically useless, and they keep showing up in the output of +"`git status`". You can tell git to ignore certain files by creating a file called .gitignore in the top level of your working directory, with contents such as: