pistacchio pistacchio - 6 months ago 80
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