How do I get from my local repository to a full clone?
<p>If I am starting from scratch I can clone a remote git repository using the command </p>

<pre><code>git clone --mirror &lt;repository-url&gt;
</code></pre>

<p>(<a href="https://git-scm.com/docs/git-clone" rel="nofollow">Documentation</a>.)</p>

<p>However I am not starting from scratch, I already have several branches locally (tracking the remote): all the ones I made and the branch called 'master'.</p>

<p>How do I get from this 'partial clone' to a full clone? I could list all the branches and tags on the remote repository and fetch them one by one, but is there a command like <code>git clone</code> that will catch my local repository up with the remote one?</p>