title: git "shallow clone + unshallow" vs "normal clone"
body: <p>I have seen this answer <a href="https://stackoverflow.com/a/22317479/10740241">for a git clone error</a>, where it is suggested that instead of cloning the entire repo, clone just the latest commit and then use unshallow to get the rest of the commits.</p>
  <p>Considering the below two commands</p>
  <pre><code>1. 
  git clone &lt;url&gt; --depth 1
  git fetch --unshallow
  </code></pre>
  <p>and</p>
  <pre><code>2. 
  git clone &lt;url&gt;
  </code></pre>
  <p>Is the final output of the clone the same for both?
  If so, how is it that the second command works much faster than the first for a very large repo?</p>
  <p>Is there some other thing that the shallow clone does not do, or has some drawbacks, specifically when working with large repositories?</p>