I am attempting to commit some new files to a GitHub repository, and have run into an issue; Visual studio won't let me commit. When I Try, I get the following error:
Git failed with a fatal error.
error: open(".vs/SAPS/v15/Browse.VC.opendb"): Permission denied
fatal: Unable to process path .vs/SAPS/v15/Browse.VC.opendb
My first response was that I needed to pull first, and I was able to pull successfully. However, this didn't fix the problem in the slightest.
A quick search for similar problems yielded an issue that appears to be related:
GitHub Commit Error: Permission denied fatal: Unable to process path ~/App_Data/aspnet-MyProject.mdf
The problem in this issue is that the asker tried to commit mdf files. However, near as I can tell, I'm not using any such files. The files I am trying to commit are .cpp and .h files. However, Visual studio created some additional files in the solution that may be causing problems. The files Visual Studio added by itself are mostly .db and .opendb files. Frankly, I don't even know what those are, and some of them appear to exist outside of the solution I am trying to use.
I would appreciate it if someone could explain to me why I am unable to commit my changes, even though I am perfectly able to pull other changes. Thanks.