尝试从Visual Studio 2015提交时出现Git错误(file opensdf) [英] Git error when trying to commit from Visual Studio 2015 ( file opensdf)

查看:444
本文介绍了尝试从Visual Studio 2015提交时出现Git错误(file opensdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从Visual Studio 2015中进行提交时,出现错误: 出现错误。详细信息:无法打开'C:/ABC/DEFG-windows-universal/AAAA.Win10.opensdf':进程无法访问文件,因为它正在被另一个进程使用。



我尝试重新启动,并删除文件,但我有同样的问题。我是否需要使用命令行来提交我的更改? (我推到Master,我是唯一一个在这个应用程序上工作的人)

解决方案

不,您需要添加该文件您的 .gitignore



只需创建 .gitignore 包含以下内容:

  *。opensdf 

更容易的是让Visual Studio在你的仓库中创建默认的 .gitignore ,或者下载默认Visual Studio .gitignore 并将其添加到您的项目。


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)

解决方案

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.

这篇关于尝试从Visual Studio 2015提交时出现Git错误(file opensdf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆