title: How to clone from a repository and bring all remote branches using git?
body: <p>I Have repository 'A', I cloned from it to Repository 'B' using <em><strong>git clone <a href="http://example/A.git" rel="nofollow noreferrer">http://example/A.git</a></strong>.</em>
  So now, I have one local branch "master" and all other branches as remote branches in 'B'.</p>
  
  <p>Next Step, I want to clone from 'B' to a new Repository 'C' using <em><strong>git clone --bare</strong></em>, and bring all remote branches from 'B' and make them as local at 'C'.</p>
  
  <p><a href="https://i.stack.imgur.com/YU1D7.png" rel="nofollow noreferrer">Image of My Workflow</a></p>