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 push origin master error on Mac OS X 10.7.3
  • Reasonable way to use BitBucket deployment key and git push with ID
  • Can Eclipse's Refactor > Move be integrated with Git?
  • Git branch named “--help”
  • How to name a (no branch)-branch on git
  • Switch to a different repository in Git
  • CSS/tiu*.css
    Script/tiu*.js
    

    but it don’t work?

  • How to Upgrade and Deploy WordPress Install as a Git Submodule?
  • Checking out equivalent branches causes untracked files to appear
  • stash PR after git rebase for huge amount of code
  • Git: How to revert a force push
  • Failed to lock refs/heads/master
  • xcode 4 cannot create a local 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.