Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git issue with Visual Studio 2015

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 2015 Update 1, and it stopped tracking changes on my files. also it won't allow me to commit anything.

Is this some sort of a known problem? are there any solutions?


update

(ironic title...) VS tracks unsaved files as "changed" and saved files appear to be "unchanged"

switching branches is behaves correctly and results in an error if there are uncommitted (real )changes


update 2

could this in the output window could have anything to do with the error:

Opening repositories:

Could not open 'C:/[project path].VC.opendb': The process cannot access the file because it is being used by another process.

Could not open 'C:/[project path].VC.opendb': The process cannot access the file because it is being used by another process.

like image 838
AK_ Avatar asked Dec 16 '15 18:12

AK_


People also ask

How do I open a Git project in Visual Studio 2015?

Open Visual Studio 2015 and go to Tools > Extensions and Updates. A window will appear. Select "Online" from the left pane and search for Github in search bar. Select "GitHub extension for Visual Studio" from the list and click on "Download" button.

Does Git work with Visual Studio?

To help you focus on your Git repository, Visual Studio has a Git Repository window, which is a consolidated view of all the details in your repository, including local and remote branches and commit history. You can access this window directly from either Git or View on the menu bar or from the status bar.

How do I add Source Control in Visual Studio 2015?

On the Source Control Explorer tab, in the Folders pane, select the folder that contains the item or items you want to add. Click the Add Items to Folder button. In the Add to Source Control dialog box, select the folder or items you want to add, and then click Next.


1 Answers

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.

like image 96
Notrace Avatar answered Sep 28 '22 21:09

Notrace