Exceptions in .gitignore [duplicate] October 6, 2022 by Tarik Use ! to negate the pattern: *.dll !myfile.dll