S
S
Scott2020-08-10 12:25:22
git
Scott, 2020-08-10 12:25:22

How to add a file with a regex to gitignore?

I want to add a file that contains in the name bundle.js
This can be

/public/js/bundle.js
/public/js/1.bundle.js
/public/js/что-то-еще.bundle.js

In theory, it would be something like this: ^.*bundle.js
But as far as I understand, git does not understand regular expressions, so I try this:
/public/js/*bundle.js
After that I tried to delete the cache of the previously tracked file via git rm --cached, but something still doesn’t work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-08-10
@g-unit

*bundle.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question