pistacchio pistacchio - 2 months ago 18
Git Question

Exceptions in .gitignore

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

Answer

Use ! to negate the pattern:

*.dll
!myfile.dll