.gitignore files not in a set
git, regex, set
Solution
You can just do
src/*
!src/*.js
!src/*.css
!src/*.html
Problem
Is there a way to limit the filetypes tracked by git by specifying a set of acceptable file types in .gitignore? I want to be able to limit the filetypes commited to my compiled directory. I understand that the parser is not regex but I'd like something like this. ``` !src/(*.js|*.html|*.css) ```