title: Xcode - error: pathspec '...' did not match any file(s) known to git
body: <p>I am using a local git repo. When I try to commit changes to the core data model file (.xcdatamodel), I get this message:</p>
  
  <pre><code>error: pathspec '.../DataModel.xcdatamodeld/DataModel.xcdatamodel/contents' did not match any file(s) known to git.
  </code></pre>
  
  <p>How to fix this and commit the model as I do with any other file?</p>