Visual Studio 2015更新2 - Git向我展示了所有bin\debug和obj\debug文件夹/文件的更改,为什么它会忽略gitignore

Tom*_*kel 6 git tfs gitignore visual-studio visual-studio-2015

我在vs 2015更新2的计算机上创建了一个新项目,我提交同步到visual studio TFS免费在线存储库.然后我把一个克隆拉到另一台计算机上,经过几天创建新文件等...我做了重建,构建正常,然后我去团队资源管理器 - > 更改

我在变化中看到,有138 ...其中.txt,.dll,.cache,.pdb等.当然我"可以"根本不"分阶段"那些,但为什么视觉工作室2015( upate 2)甚至向我展示这些文件.(我记得git/visual studio的其他项目,它根本没有显示

 bin\Debug

 obj\Debug
Run Code Online (Sandbox Code Playgroud)

发生了什么?它为什么要这样做?

(gitignore问题?)

小智 5

你将不得不从命令行锤击它.

我没有得到简单删除.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..." 
Run Code Online (Sandbox Code Playgroud)