title: Git shows that a folder deleted, but git checkout <folder_name> can't bring it back?
body: <p>If <code>git status</code> shows:</p>
  
  <pre><code>$ git status
  # On branch master
  # Changes to be committed:
  #   (use "git reset HEAD &lt;file&gt;..." to unstage)
  #
  #   deleted:    FooBar.xcodeproj/project.pbxproj
  </code></pre>
  
  <p>Isn't <code>git checkout</code> supposed to bring it back?</p>
  
  <pre><code>$ git checkout FooBar.xcodeproj
  error: pathspec 'FooBar.xcodeproj' did not match any file(s) known to git.
  </code></pre>
  
  <p>How can git correctly restore this folder?</p>