Is there a way to use extended regular expressions(ERE) in a .gitignore
file? For example I want to use the +
repetition character in a .gitignore
file. Is there a way to do that?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Improve converting string to readable urls
- Regex to match charset
- Emacs shell: save commit message
相关文章
- 请教Git如何克隆本地库?
- Optimization techniques for backtracking regex imp
- Regex to check for new line
- Allow only 2 decimal points entry to a textbox usi
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Comparing speed of non-matching regexp
As illustrated here and detailed in "this question", the function fnmatch() is involved to interpret glob patterns, which means regular expressions are not supported.
This is what
gitignore
man page mentions:You can see some correspondence between glob patterns and regular expressions in those questions.
The
.gitignore
(and other) files use filename globs, not regular expressions.I very much doubt you can convince the git hackers to change that: Just too ingrained by now, and globs are much more familiar as filename matchers.