Hi!

I have a (simple) question I could not answer elegantly from the gitignore(5) 
manual page:

A project produces a "foo" binary in the root directory that I want to ignore 
(So I put "foo" into .gitignore)
Unfortunately I found out taht I cannot have a "script/foo" added while "foo" 
is in .gitignore.
So I changed "foo" to "./foo" in .gitignore. I can could add "script/foo", but 
now "foo" is not ignored any more!

Is there as solution other than:?
--
foo
!script/foo
!bla/foo
#etc.
--

If "foo" is one exception to generally using foo elsewhere, it seems to be 
counterproductive to have to add exceptions for all the cases that are not 
exceptions, while "foo" is the only exception...

Did I miss something? If so, maybe add it to a future manual page.

Regards,
Ulrich


Reply via email to