Editor1CurrentlyOpen[1].txt
Since regex is not effective in the .gitignore file, how can a glob encompass filenames such as the above?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this community.gitignore
uses glob expressions on each line, so when you enter Editor1CurrentlyOpen[1].txt
it will try to match Editor1CurrentlyOpen1.txt
.
Add backslashes to mask the brackets in the entry:
Editor1CurrentlyOpen\[1\].txt