title: GitHub: Clone succeeded, but checkout failed
body: <p>I am having some problems working with 
  <code>git clone</code>.The files are downloaded in my local git folder. Running the command</p>
  
  <p><code>git checkout -f HEAD</code> gives me-</p>
  
  <h2>Error:</h2>
  
  <blockquote>
    <p>'The unable to write new index file error caused by the lack of disk space'. </p>
  </blockquote>
  
  <p>I've manually removed big files from my computer, but still getting the same error.</p>
  
  <pre><code>Cloning into 'ffmpeg'...
  remote: Counting objects: 7890, done.  
  remote: Compressing objects: 100% (4412/4412), done.
  Receiving objects: 100% (7890/7890), 299.75 MiB | 24.19 MiB/s, done.
  remote: Total 7890 (delta 3346), reused 7846 (delta 3317)
  Resolving deltas: 100% (3346/3346), done.
  Checking out files: 100% (7019/7019), done.
  fatal: unable to write new index file
  warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry the checkout with 'git checkout -f HEAD'
  </code></pre>