Using git for VS2010 project: Can't add file *.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

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?

  • Download code from GitHub using
  • Using libgit2 C API within Visual Studio 2013
  • How to commit a change to a file using the GitHub DB API
  • Solution won't allow debug/build/clean after merge visual studio 2012
  • Visual studio update model from data base Issue
  • Removing Keyword Substitution comments from source files?
  • Thanks!


  • Does Git never delete any information?
  • github's recommended maximum file size
  • git- Creating a branch which will be pushed to a remote later
  • Recommendation for multi-platform, portable, learning mode Git GUI?
  • Why Git config list (total) is not the same as system + global + local
  • Will a commit be garbage collected if it's referred to by tag but not by branch?
  • One Solution collect form web for “Using git for VS2010 project: Can't add file *.opensdf”

    *.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 source code control ignore pattern for Visual Studio 2010?

    Git Baby is a git and github fan, let's start git clone.