git - Visual Studio 2015 和 Git 错误 : open ("somefile.VC.opendb"): Permission denied fatal: Unable to process path myfile. VC.opendb

标签 git visual-studio visual-c++ visual-studio-2015

设置:

  • Windows 10
  • Visual Studio 2015 有更新
  • 以管理员模式运行

我无法使用 Visual Studio 2015 提交我的更改,因为没有出现提交选项。

当我转到源文件夹并尝试从那里提交时,我没有更改文件,因此我单击“Stage Changed”,这会 pop 一个对话框“Stage n 个未跟踪的文件?”,我点击“”。

然后我看到一个失败错误:

error: open("myfile.VC.opendb"): Permission denied fatal: Unable to process path myfile.VC.opendb

myfile 只是某个任意文件的名称。

但是,如果我关闭解决方案然后尝试从文件夹提交,一切都会按预期进行...

这是怎么回事?我有所有更新。

最佳答案

.opendb 文件是在 Visual Studio 2015 更新 1 中添加的,但直到更新 1 发布后才添加到默认的 .gitignore 文件中。

您可以使用更新版本,found here.opendb 扩展名是在 2015 年 12 月 1 日添加的:

enter image description here

关于git - Visual Studio 2015 和 Git 错误 : open ("somefile.VC.opendb"): Permission denied fatal: Unable to process path myfile. VC.opendb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34975423/

相关文章:

git - 如何将两个非顺序的 git 提交 merge 为一个?

c# - 如何在 ASP.NET 中使用插件架构?

c# - 在 C# 项目中构建 VisualMicro Arduino 项目

c# - Visual Studio dll 创建故障排除

c++ - 如何构建捕获所有异常的 C++ Dll 包装器?

c++ - Curl 7.43.0 不会在 MSVC 2013 中构建

c++ - const char * 对 vector<unsigned char> 的初始化

git - Azure DevOps 代码更改未在 github 中同步

git - 如何按最近 checkout 对 git branch 的输出进行排序

node.js - 无法从 travis 发布到 github 包注册表 : 401 unauthorized despite including github personal access token