I’ve got directory with many different files with same extensions and I want to add only some files from this directory and mask the rest. I know that I can just do not add them without masking but it’s better for tortieseGit to have everything masked there.
So is it possible ? Can gitignore make exceptions ?
If you want to ignore all files with extension .txt, but not ignore a.txt, just put this in .gitignore: