title: How to push to new git branch not with Xcode
body: <p>I've been using a git branch with a remote repo as well (Bit bucket)</p>
  
  <p>I decided to create a new branch so ran this code</p>
  
  <pre><code>Directory= ~/tmp/merge/aaa&gt; git branch iOSUI/beta
  Directory= ~/tmp/merge/aaa&gt; git checkout iOSUI/beta
  Switched to branch 'iOSUI/beta'
  </code></pre>
  
  <p>Then tried to push</p>
  
  <pre><code>Directory= ~/tmp/merge/aaa&gt; git push origin iOS7UI/beta
  error: src refspec iOS7UI/beta does not match any.
  error: failed to push some refs to 'https://xxx/repo.git'
  </code></pre>
  
  <p>So I tried to create a remote branch</p>
  
  <pre><code>Directory= ~/tmp/merge/aaa&gt; git branch origin iOSUI/beta
  error: there are still refs under 'refs/heads/origin'
  fatal: Failed to lock ref for update: Is a directory
  </code></pre>
  
  <p>After that failed I tried through XCode by selecting push and then it pushed successfully to </p>
  
  <blockquote>
    <p>'origin/iOS7UI/beta'</p>
  </blockquote>
  
  <p>Again I tried through the command line 2 options</p>
  
  <pre><code>Directory= ~/tmp/merge/aaa&gt; git push origin iOS7UI/beta
  error: src refspec iOS7UI/beta does not match any.
  error: failed to push some refs to 'https://xxx/repo.git'
  
  and this option with the '/'
  
  Directory= ~/tmp/merge/pixtr&gt; git push origin/iOS7UI/beta
  fatal: 'origin/iOS7UI/beta' does not appear to be a git repository
  fatal: Could not read from remote repository.
  </code></pre>