How to Git Ignore Contain “tiu” Word Files

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:

  • git pull currently tracked branch
  • How can I make this git command alias?
  • git setup for backup & sync between 2 computers
  • In “git checkout — files”, what does “--” mean?
  • git merge updates files not changed on source branch
  • git large pack file, delete and rewrite?
  • CSS/tiu*.css
    Script/tiu*.js
    

    but it don’t work?

  • how to do a git diff of current commit with last commit using gitpython?
  • What does the .git folder not contain?
  • How to use Vim to quickly see Mercurial or Git changes
  • converting messy svn repository to git
  • What does “Git push non-fast-forward updates were rejected” mean?
  • How to use powershell to install and configure IIS, SSL certificate, urlrewrite, git and clone repository
  • 2 Solutions collect form web for “How to Git Ignore Contain “tiu” Word Files”

    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 they’re already added to the repository, you need to remove them from the repo without deleting the files. Do that with:

    git rm --cached /Script/tiu*
    

    That will remove the objects from the repo and the index, but leave the working directory alone. From then on, they should be happily ignored by git status and git add (and by extension git commit -a).

    Git Baby is a git and github fan, let's start git clone.