title: Git Hub Clone All Branches At Once
body: <p>I'm trying to clone an entire repository onto my machine using linux. I used </p>
  
  <pre><code>git clone &lt;url&gt;   
  </code></pre>
  
  <p>I then went into the folder where it was downloaded and typed</p>
  
  <pre><code>git branch 
  </code></pre>
  
  <p>in the terminal. It's only showing me master and not other branches which were in the remote repository. How do I clone all branches?</p>
  
  <p>I know that for each branch in the remote I can separately use </p>
  
  <pre><code>git checkout -b &lt;name of local branch&gt; origin/&lt;name of remote branch&gt;
  </code></pre>
  
  <p>but is there any way other than that?</p>