title: Invalid branch / Duplicate Branch
body: <p>I am working on a project with the master branch. Then I created a branch out of master called &quot;dev&quot;. Now I push my code to dev.</p>
  <p>Unfortunately now I see a duplicate branch of dev called &quot;dev 2&quot; under section remote -&gt; origin (as in the given picture)</p>
  <p><img src="https://i.stack.imgur.com/PJyjM.png" alt="enter image description here" /></p>
  <p>Could somebody please tell how it was created and now how to get rid of it.</p>
  <p>Now when I pull from Xcode I get the following error:</p>
  <p>the given reference name 'refs/remotes/origin/dev 2' is not valid (-12)</p>