Git is not ignoring neither checking out .vs folder (VS2015)
问题 In my .gitignore file, there's a line to ignore the Visual Studio 2015 folder (".vs/"), but it's not being ignored. And, besides, I can't use the checkout command. That's what was returned: Untracked files: (use "git add <file>..." to include in what will be committed) .vs/ PS C:\path\to\project> git checkout -- .vs/ error: pathspec '.vs/' did not match any file(s) known to git. What's wrong? 回答1: Try below - git rm -r .vs then open .gitignore and add end of file .vs/ This should work 回答2: