Damien Damien - 3 months ago 27
Git Question

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)

Answer

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.