Using Visual Studio 2013 and TFS I did a lot of work before checking in. Then I accidentally clicked undo pending changes... thinking it would only apply to one of the proje
I did something similar where I hit undo and it removed files I didn't intend it too. I just hit the show all files icon in the Solution explorer. It made the files visible and then all I had to do was right click and then select Include In Project.