title: How do I create a branch using git and repo tools while working with android code
body: <p>I downloaded the android code from source.android.com. Then I created a new branch from this code:</p>
  
  <pre><code>repo start mybranch platform/external/webkit
  </code></pre>
  
  <p>Then I tried to switch to the new branch using :</p>
  
  <pre><code>git checkout mybranch
  </code></pre>
  
  <p>which failed with this error message:</p>
  
  <blockquote>
    <p>fatal: Not a git repository (or any parent up to mount parent /media)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not
    set).</p>
  </blockquote>
  
  <p>I tried the steps mentioned in the <a href="http://source.android.com/source/version-control.html" rel="nofollow">android link</a>.</p>
  
  <p>One more problem:  when I use the command </p>
  
  <pre><code>repo branch 
  </code></pre>
  
  <p>it shows only the branch which I created eailer. How can I switch between the code I have downloaded and the code I have made changes to?</p>