Git不会忽略也不签出.vs文件夹(VS2015) [英] Git is not ignoring neither checking out .vs folder (VS2015)
本文介绍了Git不会忽略也不签出.vs文件夹(VS2015)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的 .gitignore 文件中,有一行可以忽略Visual Studio 2015文件夹(".vs/"),但不会被忽略.
In my .gitignore file, there's a line to ignore the Visual Studio 2015 folder (".vs/"), but it's not being ignored.
此外,我不能使用 checkout 命令.那就是返回的内容:
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.
怎么了?
推荐答案
尝试以下方法-
git rm -r .vs
然后打开.gitignore
并添加文件结尾
then open .gitignore
and add end of file
.vs/
这应该有效
这篇关于Git不会忽略也不签出.vs文件夹(VS2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文