对VS2010项目使用git:无法添加文件* .opensdf [英] Using git for VS2010 project: Can't add file *.opensdf
问题描述
我使用git跟踪VS2010中的C ++项目。我使用忽略模式发现stackoverflow,这通常不排除* .opensdf文件。不幸的是,当尝试提交文件时,我得到以下错误:
I'm using git to track a C++ project in VS2010. I'm using ignore patterns found on stackoverflow, which usually do not exclude the *.opensdf file. Unfortunately, when trying to commit the file, I get the following error:
error: open("foo.opensdf"): Permission denied
error: unable to index file foo.opensdf
fatal: adding files failed
为什么会收到这个错误,如何避免?由于我是VS2010的新手,这个文件的用途是什么?
Why do I get this error and how can it be avoided? Since I'm quite a newbie with VS2010, what is the use of this file?
谢谢!
mort
推荐答案
*。opensdf是一个只打开的临时文件而.vcxproj / .sln加载到Visual Studio IDE。应将其添加到您的.gitignore文件中。
*.opensdf is a temporary file opened only while .vcxproj/.sln is loaded to Visual Studio IDE. It should be added to your .gitignore file.
See the accepted answer on this question: What should be contained in a global Subversion ignore pattern for Visual Studio 2010?
这篇关于对VS2010项目使用git:无法添加文件* .opensdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!