git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Documentation: user-manual: "git commit -a" doesn't motivate .gitignore
@ 2008-08-06 21:22 Jonathan Nieder
  2008-08-06 21:47 ` Miklos Vajna
  2008-08-07 12:24 ` Documentation: user-manual: "git commit -a" doesn't motivate .gitignore J. Bruce Fields
  0 siblings, 2 replies; 10+ messages in thread
From: Jonathan Nieder @ 2008-08-06 21:22 UTC (permalink / raw)
  To: git

"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 <jrnieder@uchicago.edu>
---
	I noticed this while reading through the git-scm book, which
	looks very good.  If I am missing something, I would be very
	happy to know.  Maybe the sort of person that wants to track the
	exact contents of the working tree would prefer
	"git commit -a -i ." over "git commit -a"?

 Documentation/user-manual.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 43f4e39..f421689 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:
-- 
1.6.0.rc1.228.ge730

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-08-07 12:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 21:22 Documentation: user-manual: "git commit -a" doesn't motivate .gitignore Jonathan Nieder
2008-08-06 21:47 ` Miklos Vajna
2008-08-06 22:29   ` Jonathan Nieder
2008-08-06 22:54     ` Jonathan Nieder
2008-08-07  0:15     ` [PATCH] Documentation: clarify that git-commit only works with tracked files Jonathan Nieder
2008-08-07  0:39       ` Johannes Schindelin
2008-08-07  1:14         ` Jonathan Nieder
2008-08-07 11:00         ` Miklos Vajna
2008-08-07 11:52         ` Peter Krefting
2008-08-07 12:24 ` Documentation: user-manual: "git commit -a" doesn't motivate .gitignore J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).