title: Xcode and Git Source Control : "The working copy XXXXX failed to commit files"
body: <p>I know this may be an ultra-newbie question, but - although I've been coding for like 18 years - it's been only a few days that I've been using Source Control for my project and I feel quite lost.</p>
  
  <p>I have set up <strong>Git</strong> properly and, from time to time, I'm commiting the changes. </p>
  
  <p><code>(File -&gt; Source Control -&gt; Commit)</code></p>
  
  <p><strong>However :</strong></p>
  
  <p>Whenever I try to delete a file (that initially existed) and then commit the changes, I'm getting an error like this :</p>
  
  <blockquote>
    <p><strong>The working copy "MY_COPY_NAME" failed to commit files</strong></p>
    
    <p>fatal: could not switch to "/the/path/of/the/file/i/just/deleted":  no
    such file or directory</p>
  </blockquote>
  
  <p>What's going on? </p>
  
  <p>What should I do in order to commit the changes even after a file has been deleted?</p>