I have a folder, ex: folder1, that is being tracked by git for a long time. If I inset a new file, ex: file1 inside it, git status show a change, as should be.
But now I do not want that folder1 to be tracked by any more.
So, I set in .gitignore folder1/, and add and commit .gitignore.
After this, if I add new files, says file2, git status do not show me the new file that was added (file2) after gitignore was set, but still showing chages that was made before the gitignore settings.
modified: folder1/file1.txt (in red)
I already tried unstage the file1.txt and I followed this post Ignoring an already checked-in directory's contents? and this one Untrack and stop tracking files in git but not worked. I was expecting to have the message:
$ git status
On branch master
nothing to commit, working directory clean
What am I missing?