Gitignore doesn't ignore a specific folder

I have add this files into my gitignore file


and when I did git status, I still see

  • Git - push tags in Netbeans
  • make head stop waiting for input
  • Git: Create a branch from unstaged/uncommited changes on master
  • git - diff of current changes before committing
  • Checkout path is not empty. Do you want to delete its contents? Xamarin/Git
  • Git-based website deployment workflow
  • new file:   public/file/external/description.txt
    new file:   public/file/external/header.txt

    How do I make everything inside my public/file/ ignore by git ?
    How do stop that ?

    Do I need to clear any caches ?

  • “git checkout — *” returns “error: pathspec did not match any files known to git”
  • Git: Recover failed commit's message
  • What is a git boundary commit
  • How to view multiple commit changes in a single window using meld?
  • How to use gitignore on for adding .c9revisions/ folder
  • Git push failed, looking for partial file history deletion
  • One Solution collect form web for “Gitignore doesn't ignore a specific folder”

    You should be able to accomplish this either with


    From the docs, ** means any number of subdirectories

    I think that ignoring the directory specifically rather than objects within it will work also

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