Ignore files with names starting with 'output'

Just add the following to your gitignore:

output*.txt

* is a "wildcard", so it will match anything.


Pattern matching doesn’t just work before the extension. Just as much as you can ignore *.txt, you can ignore:

output*.txt

if you want to ignore files with starting letters, also you can do with extensions as well

for all extensions

startingFileName*.*

  1. files, extensions start with mp letters like mp3,mp4 etc

    starting*.mp*