【问题标题】:Using git for VS2010 project: Can't add file *.opensdf将 git 用于 VS2010 项目:无法添加文件 *.opensdf
【发布时间】:2011-02-23 08:10:46
【问题描述】:

我正在使用 git 在 VS2010 中跟踪 C++ 项目。我正在使用在 stackoverflow 上找到的忽略模式,通常不排除 *.opensdf 文件。不幸的是,在尝试提交文件时,我收到以下错误:

error: open("foo.opensdf"): Permission denied
error: unable to index file foo.opensdf
fatal: adding files failed

为什么会出现此错误,如何避免?由于我是VS2010的新手,这个文件有什么用?

谢谢!

死亡

【问题讨论】:

    标签: c++ git visual-studio-2010


    【解决方案1】:

    *.opensdf 是仅在 .vcxproj/.sln 加载到 Visual Studio IDE 时打开的临时文件。它应该被添加到你的 .gitignore 文件中。

    查看此问题的公认答案:What should be contained in a global source code control ignore pattern for Visual Studio 2010?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-22
    • 1970-01-01
    • 2020-02-11
    • 2019-07-21
    • 2016-10-31
    • 1970-01-01
    • 2021-09-08
    相关资源
    最近更新 更多