title: How to delete a remote branch using Git?
body: <p>I know this has been covered before, but I have tried the following and can't seem to delete the remote branch. </p>
  
  <pre><code>aly@neon:~/workspace/3DOD_VARIANCE$ git branch -a
  * master
    remotes/origin/HEAD -&gt; origin/master
    remotes/origin/master
    remotes/origin/multi_gauss_at_nodes
    remotes/origin/old-state-with-mean-deviation-from-centre
    remotes/origin/variance-branch
  
  
  aly@neon:~/workspace/3DOD_VARIANCE$ git branch -r -d origin/old-state-with-mean-deviation-from-centre Deleted remote branch origin/old-state-with-mean-deviation-from-centre (was 0ed90b2).
  
  
  Fetching origin
  From https://bitbucket.org/alykhantejani/3dobjectdetection
   * [new branch]      old-state-with-mean-deviation-from-centre -&gt; origin/old-state-with-mean-deviation-from-centre
  </code></pre>
  
  <p>As you can see the branch has been fetched again. Any idea what I'm doing wrong? </p>
  
  <p>Also, as a side note, is there a way for me to check if this branch has already been merged back into master before I delete?</p>