I have a Visual Studio solution inside a git repository created with TortoiseGit version 1.8.16.0 (git version 2.6.2.windows.1)
I just updated Visual Studio from 2015 to
Simpler solution which worked for me (also for VS 2017): open .git\config file and change
bare: true
to
bare:false