gitignore not works sometimes

I have simple issue. I want to ignore entire directory. in .gitignore I added /**/my_folder_with_is_in_root. I also tried my_folder_with_is_in_root/ or /**/my_folder_with_is_in_root/. but when I changed file content somewhere inside of this folder and git status gives me message that file changed. how ignore folder? sometimes it works for certain folders. cache problem or what? please help

  • How do I check for uncommitted git repositories in windows
  • Building pry plugin(gem) with bundler
  • Jenkins keeps adding job in the build queue and keeps building them
  • Avoid the effects of a revert commit in another Git branch while merging
  • Git: discover which commits ever touched a range of lines
  • How to properly use git and branches
  • Heroku Create Command Yielding “ENOENT” Error
  • Git add . ignores .gitignore
  • Stop new branch from getting old commit history in Git
  • How can I gitignore files in a directory structure but maintain the directory structure?
  • Git: how to put modifications from master to branch?
  • Git with SSH on Windows
  • One Solution collect form web for “gitignore not works sometimes”

    I found answer git rm -r --cached my_folder_with_is_in_root/

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