pistacchio pistacchio - 11 months ago 117
Git Question

Exceptions in .gitignore

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

Answer Source

Use ! to negate the pattern:

*.dll
!myfile.dll