Re: How do I stop git enumerating my working directory
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Jul 1, 2008, 16:37 UTC
- Message-ID
- <vpqr6ad5zms.fsf@bauges.imag.fr>
- In-Reply-To
- <486A53CC.4020803@glidos.net>
Paul Gardiner <lists@glidos.net> writes:
> I don't think I can make .gitignore files do the job, because > it seems that you can set up to ignore a whole directory, > and then partially countermand that by placing a .gitignore > file (containing ! commands) inside the directory.
To me, it seems the opposite ;-).
I just tried to "git init" my $HOME, then "git status" takes forever, but "echo '*' > .gitignore; git status" completes immediately.
So, an option is to put "*" in your .gitignore, and then "git add -f" files explicitely, or to work your .gitignore finer.
-- Matthieu