How to make
$HOME/.gitignore understand regexp? Specifically, I want to enable it ignore files modules.builtin and modules.order:
This doesn't seem to be picked up when I'm running
git status What am I doing wrong here?
Best How To :
gitignore doesn't support
regexes, it only supports unix
fnmatch style patterns.
You can read more about this on the git-scm entry for gitignore.
If you have multiple directories/files to ignore, you could try using
modules.* as a single entry, or two entries as suggested by the other answer.