I have a program that generates text files output1.txt , output2.txt , output3.txt , etc. I want Git to ignore these files. I cannot block text files since I have text files that cannot be ignored. In addition, files are dynamically generated (there is no limit on the number that appears after the "output"), so you cannot add file names statically. Can someone please help me with this?
PS. I checked this Make .gitignore to ignore everything except a few files , but this applies to a set of known files. In my case, it could be a long list.
user4302594
source share