Visual Studio 2015 2 Update - Git shows me changes to all bin \ debug and obj \ debug / files, why will gitignore ignore it

I created a new project on a computer with vs 2015 update 2 , I commit and synchronize for the TFS visual studio a free online repository. Then I pulled the clone to another computer and a few days after creating new files, etc. I did a recreation, it builds fine, then I go to Team Explorer -> Changes

I see in "Changes" that there are 138 ... of which .txt, .dll, .cache, .pdb, etc. Of course, I β€œcould” simply not β€œstage” them, but why would Visual Studio 2015 (at the top 2) even show me these files. (I recall other projects with git / visual studio in which it just doesn't show

bin\Debug obj\Debug 

What happened? Why does it do / show it?

(problem with gitignore?)

+5
source share
1 answer

You will have to hammer it from the command line.

I did not get results with a simple deletion .git \ ms-persist.xml This file will be recreated.

  • zip your project so as not to lose any of your files / work on your remote computer ...

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..." 
+5
source

All Articles