Search code examples
gitgitignore

.gitignore two or more extensions file


I have the next files in my local repository:

app.component.js core.component.js core.service.local.js core.service.power.ts

My question is very simple, How can I do to ignore the files with the extension .component.js and .service.local.js and other, I mean any file to end with .Any_String.ext


Solution

  • Use a wild character '*'. Example *.component.js