title: REPO (aosp) switch between branches
body: <p>I have some issues in understanding how <strong>repo</strong> works, specifically  how to switch between branches.</p>
  
  <p>I did</p>
  
  <p><code>repo init -u https://android.googlesource.com/platform/manifest</code></p>
  
  <p>and then</p>
  
  <p><code>repo sync</code>.</p>
  
  <p>Based on my understanding my repo branch should be on master, but when I run</p>
  
  <p><code>repo branch</code></p>
  
  <p>the output is <code>no branches</code>. </p>
  
  <p>I want to know how can I switch between branches. Should I run </p>
  
  <p><code>repo init</code> and <code>repo sync</code> </p>
  
  <p>every time I want to switch branch (<code>repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1</code>) or is there any similarity with git flow (<code>git checkout &lt;branch&gt;</code>). How can I create new local branch for developing?</p>
  
  <p>Thanks for help.</p>