title: git move locally committed changes to the new branch and push
body: <p>I am on <code>master</code>. When I do git status I am told</p>
  
  <pre><code>$ git status
  # On branch master
  # Your branch is ahead of 'origin/master' by 13 commits.
  #   (use "git push" to publish your local commits)
  #
  nothing to commit, working directory clean
  </code></pre>
  
  <p>So all 13 only exist on my local machine. The problem is that these 13 commits are now supposed to go on a new branch that I should create and push onto the server. I have tried looking at rebase but I am told</p>
  
  <pre><code>$ git rebase origina/master
  fatal: Needed a single revision
  invalid upstream origina/master
  </code></pre>
  
  <p>How would I go about pushing these changes into a new branch without messing up the master?</p>
  
  <p>Just to clarify. This is not a duplicate of<br>
  <a href="https://stackoverflow.com/questions/5066041/git-moving-committed-but-not-pushed-changes-to-a-new-branch">moving committed (but not pushed) changes to a new branch</a> this one simply does not work for me no matter what I do.
  <br>or<br>
  <a href="https://stackoverflow.com/questions/3228457/git-howto-move-changes-since-last-commit-to-a-new-branch">Git: Howto move changes since last commit to a new branch</a> again is of no help.</p>