pistacchio pistacchio - 1 year ago 168
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download