Alex Rivera | Logout

Exceptions in .gitignore

Asked 2010-03-10T09:52:48.573
298

How can I add an exception to .gitignore, like "ignore all the .dll files BUT myfile.dll"?

Edit
Report

1 Answer

393

Use ! to negate the pattern:

*.dll
!myfile.dll
answered 2010-03-10T09:55:15.190

Your Answer