pistacchio pistacchio - 8 months ago 96
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