How to Git Ignore Contains Word "tiu" Files

category like:

/Script/tiu_adfsfdfdsff.js
/Script/tiu_adfsfdfdsff.js
...
/CSS/tiu_adfsfdfdsff.css
/CSS/tiu_adfsfdfdsff.css
...

I want to ignore the tiu

files my .gitignore files:

CSS/tiu*.css
Script/tiu*.js

but it doesnโ€™t work?

+5
source share
2 answers

if you want to ignore all tiu * files, use the global template (without specifying a directory first):

tui*.css

If this does not work, here are the rules for templates: http://git-scm.com/docs/gitignore

+6
source

If they are already added to the repository, you need to remove them from the repo without deleting the files. Do this with:

git rm --cached /Script/tiu*

, . git status git add ( git commit -a).

+1

All Articles