title: Why is clone succeeded, but checkout failed?
body: <p>Getting following error/warning when I clone a large project in my Windows 10.</p>
  <pre><code>....
  error: unable to create symlink Codes/MyProject/Pods/Headers/Public/nanopb/pb_common.h: No such file or directory
  error: unable to create symlink Codes/MyProject/Pods/Headers/Public/nanopb/pb_decode.h: No such file or directory
  error: unable to create symlink Codes/MyProject/Pods/Headers/Public/nanopb/pb_encode.h: No such file or directory
  Updating files: 100% (9536/9536), done.
  fatal: unable to checkout working tree
  warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry with 'git restore --source=HEAD :/'
  </code></pre>
  <p><strong>Why the warning appears and how to resolve this?</strong></p>
  <p>However, I tried to run following command from the downloaded repo root directory as per gits suggestion,</p>
  <pre><code>git restore --source=HEAD :/
  </code></pre>
  <p>But again I got similar error like,</p>
  <pre><code>    ....
      error: unable to create symlink Codes/MyProject/Pods/Headers/Public/nanopb/pb_common.h: No such file or directory
      error: unable to create symlink Codes/MyProject/Pods/Headers/Public/nanopb/pb_decode.h: No such file or directory
      error: unable to create symlink Codes/MyProject/Pods/Headers/Public/nanopb/pb_encode.h: No such file or directory
  </code></pre>