title: Reusing git branch names
body: <p>I am wondering what happens if I create a branch in git that have the same name as a remote branch. Would the first branch stop to exist in the remote repository once I push my branch? For example, lets say I clone the following bare repository</p>
  
  <pre><code>master    A----B---C
                  \
  mybranch         D---E
  </code></pre>
  
  <p>then I proceed to create a branch called <em>mybranch</em> from the <em>master</em> and generate a few commits. I know that if I checkout mybranch a tracking branch will be created but if I create a branch (<em>git branch mybranch</em>) what would happen once I decide to push <em>mybranch</em>? I did a few examples but I couldn't figure out what was happening. Thanks.</p>