We've tried all sorts of explicit and wildcard entries in .gitignore however items in the hidden .vs
folder as a part of Visual Studio keep getting committed.
Since those are individual settings for developers, they are obviously always different and show up in a git diff.
How can I resolve it to ignore everything in the top-level .vs
folder in the repo?
If they are showing up in a
git diff
, then the files are already being tracked, whereas .gitignore only affects files that are untracked. You will need to remove the files from source control withgit rm --cached
, and then .gitignore will affect them.Note that when you do this, other developers will have their files deleted locally when they do their next
git pull
. So before doing so, they may want to make a backup of those files.