title: fork a Git repo locally (copy the Git repo?)
body: <p>I am having a surprisingly difficult time finding an answer to this online.</p>
  
  <p>I have a local Git repo on my filesystem. There is way too much history in there. I just need to clone it with depth=5 or so, etc.</p>
  
  <p>I was thinking of copying the repo locally and then pruning it (getting rid of some old stuff).</p>
  
  <p>Ideally I could copy the original repo with something like:</p>
  
  <pre><code>git clone --depth=5 /local/path/to/repo
  </code></pre>
  
  <p>but I can't find info on the exact command to run.</p>
  
  <p>I tried that last command and I got this warning:</p>
  
  <blockquote>
    <p>warning: --depth is ignored in local clones; use file:// instead</p>
  </blockquote>