Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git error when trying to commit from Visual Studio 2015 ( file opensdf)

I am getting an error when I am trying to do a commit from Visual Studio 2015:

An error occurred. Detailed message: Could not open 'C:/ABC/DEFG-windows-universal/AAAA.Win10.opensdf': The process cannot access the file because it is being used by another process.

I have tryied to reboot, and to delete the file but I have the same issue. Do I need to use the command line to commit my changes? (I am pushing to Master and I am the only one working on this app)

like image 331
Damien Avatar asked Nov 19 '15 18:11

Damien


1 Answers

No, you need to add that file to your .gitignore.

Simply create a .gitignore that contains the following :

*.opensdf

Easier, though, is to let Visual Studio create the default .gitignore in your repository, or download the default Visual Studio .gitignore and add it to your project.

like image 152
Edward Thomson Avatar answered Sep 30 '22 00:09

Edward Thomson