Visual Studio 2015 更新 2 - Git 向我展示了所有 bin\debug 和 obj\debug folder/files 的变化,为什么它会忽略 gitignore

Visual Studio 2015 update 2 - Git is showing me in changes all the bin\debug and obj\debug folder/files , why would it be ignoring the gitignore

我在使用 vs 2015 update 2 的计算机上创建了一个新项目,我 commitsync 到 visual studio TFS 免费在线资源库。然后我将一个克隆复制到另一台计算机上,并在创建新文件等几天后...我进行了重建,构建良好,然后我转到 Team Explorer -- > 变化

我在更改中看到,有 138 个...其中 .txt、.dll、.cache、.pdb 等。 当然,我 "could" 根本不是 "stage" 那些,但为什么 visual studio 2015(更新 2)甚至会向我展示这些文件。 (我记得其他带有 git / visual studio 的项目根本不显示

 bin\Debug

 obj\Debug

发生了什么事?为什么是doing/showing这个?

(git忽略问题?)

您将不得不从命令行敲打它。

我没有通过简单删除 .git\ ms-persist.xml 得到结果 该文件被重新创建..

  1. 压缩您的项目以确保不会丢失任何文件/在您的远程工作...

2.

cmd>

git status   ( i would do this frequently for peace of mind

Keep your 1 or more .gitignore file in the project folder(s)


git commit -m "all your files"   (save your code)

git rm -r --cached .     (remove any changed files from index (stage) 

git add .   ( add all files  which will remove .dll etc..

git commit -m "now your gitignore will work..."