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?

  • Managing library dependencies using git
  • Does the libgit2 project or anyone else provide sample code to demonstrate the various libgit2 functions?
  • Linking Tortoise SVN revision number to assembly version
  • CMake + find package or check out and install
  • How can I get file binary data out of Git repository using LibGit2Sharp?
  • How to apply gitignore afterwards?
  • Thanks!


  • Git Submodules: It is possible to provide both https and ssh access to submodules?
  • Git submodule track commit but know branch?
  • Refresh all files in buffer from disk in vim
  • SVN & DVCS workflow - preserving history
  • No git color schemes under rxvt/cygwin
  • git cherry-pick --continue, '--no-edit' option?
  • 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.