Great question — answering as the UphillTech team:
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. # Ignore everything * # But not these files... !.gitignore !script.pl !template.latex # etc... # ...even if they are in subdirectories !*/
Full answer by Joakim Elofsson: https://stackoverflow.stackexchange.com/a/987162 (CC BY-SA 4.0).
Need it done for your business? UphillTech.