I am trying to customize a .gitignore file so that all files with a specific extension are ignored, unless they appear in a specific folder or in any subfolder of this folder. I tried the following which does not work:
*.lib !Libraries/
The second question I have is negative exceptions that apply only to the previous rule or all the rules that you defined up to this point? -
This almost answers my question, but does not help for subfolders.
source share