title: Git - separate folder for each branch. Setting it up
body: <p>I have a need to keep 3 branches in 3 separate folders. (I know this is not a git way of doing things. But I need to do this for a reason).</p>
  
  <p>Lets say the repo name is <code>my_proj_repo.git</code>
  I have created a folder called <code>prodv1</code> in my local system:</p>
  
  <pre><code>git clone url:/my_proj_repo.git
  </code></pre>
  
  <p>Now I went into <code>prodv1</code> folder and copied the files from a server, then:</p>
  
  <pre><code>git commit -am "initial import"
  git push origin master
  </code></pre>
  
  <p>That pushed the files to master.
  Now I created two more folders like the above in my local system</p>
  
  <pre><code>stagingv1
  devv1
  </code></pre>
  
  <p>I want to create two local and remote branches with the names:</p>
  
  <pre><code>staging // this local branch points (push/pull) to staging remote branch
  dev     // this local branch points ((push/pull) to dev remote branch
  </code></pre>
  
  <p>And these two branches should be in the corresponding folders:</p>
  
  <pre><code>staging ==&gt; stagingv1 folder
  dev     ==&gt; devv1 folder
  </code></pre>
  
  <p>I tried a few things and I guess I messed it up. 
  Can someone point me commands/steps to get all this setup like I wanted?</p>
  
  <p>What I did was, went into the <code>stagingv1</code> folder and did a <code>git clone &lt;repo&gt;</code>. But it defaults to <code>master</code>. And I am not sure how to initialize the <code>staging</code> branch here.</p>