hi as am a newbie to GIT with visual studio , I\'m working with an n-tier website with multiple projects and at first i make it as an empty website , so the visual studio
I had the same problem with Visual Studio 2015 and the website templates for .NET Framework 4 (Looks like this has been sorted for templates targeting 4.5).
This is how I got the files from the template into the project
You'll now see in Windows Explorer there are two folders WebSite4 and WebSite4 (2). The second folder has the sln file and packages folder.
Return to Visual Studio
Bonus - rename the solution 10. Right click Solution 'WebSite4 (2)' and click Rename. Remove the (2)
Bonus - rename the folder
Once that was all done I was able to publish the project to a remote git repository through Team Explorer.