Alexander Fuchs
Alexander Fuchs

Reputation: 147

Git 2.6.3 and Visual Studio 2013 / 2015 integration

I am facing a weird issue with Visual Studio. GIT integration was fine until I upgraded my entire system. I am running a VM on Mac OSX El Capitan (using VMWare Fusion 8.0.2). Here is what I upgraded:

With Git 2.6.3 installed, all my files in the Solution Explorer show the red check ("Pending Edit"). However, there are no changes to the file and instead they should show the blue lock symbol. With this issue, I can not see in the Solution Explorer which files have been changed. I noticed that this had to do with the Git upgrade. I moved back to Git 1.9.5 and the Visual Studio integration works as it should. The issue appears in VS 2013 as well as in VS 2015.

Anybody else experienced the same problem? And is there a known workaround to make the latest Git release compatible to Visual Studio?

Here are picture to display the issue in the Solution Explorer:

With Git 2.6.3 all files look like this: enter image description here

With Git 1.9.5 files are correctly identified as unmodified:enter image description here

Upvotes: 2

Views: 304

Answers (1)

VonC
VonC

Reputation: 1323973

all my files in the Solution Explorer show the red check ("Pending Edit").

This is probably due to a global setting which changes the eol (end of line) of all files on checkout.

git config --global core.autocrlf false

The OP Alexander Fuchs confirms in the comments:

Changing a file, undoing the changes (the file is marked as edited and shows up in changed files).
After this, checkout the file from the repository and voila, the state of the file updates now correctly in Visual Studio.

Upvotes: 2

Related Questions