Issue ignoring file for VCS

I'm trying to set VCS (Git/Github) to ignore my settings.json file. I've tried adding it to .gitignore and the "Ignored Files" section in settings. When I go to VCS > Commit Changes, it shows the ignored file as selected and it looks like it will be committed. Am I doing something incorrect, or is this a bug?

Thanks

0
2 comments

it is not a bug - .gitignore (as well as  "Ignored Files" option) is not used when selecting files to commit, it is only used when adding files to GIT (ignored files are never suggested for addition). If the file is already in the repository, its content will still be tracked by GIT regardless of .gitignore settings.

0
Avatar
Permanently deleted user

I was able to fix my issue by running the following commands

git rm -r --cached .
git add .
git commit -m "fixed untracked files"

http://stackoverflow.com/questions/11451535/gitignore-not-working
0

Please sign in to leave a comment.