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
Since the Visual Studio 2015 update 1 release notes and its "Known Issues and Fixed Bugs" page does not mention anything related to Git, try to:
git clone
)Or:
.git
by your own, and copy your worktree over the one used by Visual Studio)I had the exact same issue as you and spent hours trying to get it to work, including re-cloning.
I solved it on my end by adding the *.VC.opendb and *.VC.db files to the .gitignore file of my project.
As soon as I returned to Visual Studio all my pending changes were showing. As far as I can tell it's all working normally again.
Simpler solution which worked for me (also for VS 2017): open .git\config file and change
bare: true
to
bare:false
To make VS 2015 not show the unmodified files, you need to set core.autocrlf=false
in your Git configuration by console. It sames newer versions of git core includes one new line on file with crlf (VS doesn't show the new line).
To set it through all your repositories write
git config core.autocrlf false
and it will be deactivated.
I have same issue with db.lock file ...
Solution with images are as follow:
Git will ignore these files for next commit.