the category like:
/Script/tiu_adfsfdfdsff.js
/Script/tiu_adfsfdfdsff.js
...
/CSS/tiu_adfsfdfdsff.css
/CSS/tiu_adfsfdfdsff.css
...
i want to ignore contain "tiu" files
my .gitignore files is:
CSS/tiu*.css
Script/tiu*.js
but it don't work?
You have the option to use double Asterisk (**) to match any number of directories and files. For example, Test/**/*. txt will tell git to ignore only files ending with . txt in the test directory and its subdirectories.
Use Git update-index to ignore changes Or, you can temporarily stop tracking a file and have Git ignore changes to the file by using the git update-index command with the assume-unchanged flag.
Personal Ignore Rules Patterns that are specific to your local repository and should not be distributed to other repositories should be set in the . git/info/exclude file. For example, you can use this file to ignore generated files from your personal project tools.
if you want to ignore all the tiu* files, use a global pattern (without specifying the directory at first):
tui*.css
If this does not work, here are the rules for patterns: http://git-scm.com/docs/gitignore
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With