I have a gitignore file that makes git ignore
*.dll #Exclude all dlls !foo.dll #Except for foo.dll
An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again. If a negated pattern matches, this will override lower precedence patterns sources.