Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 4
    LOL. I was trying to push to origin master but that branch didn't exist. It was called origin stable. Commented May 27, 2013 at 23:35
  • 1
    The -u may have helped here. Commented Jun 8, 2015 at 0:22
  • 3
    In the above case, the problem is of course that there's no local branch master, so you can't push it. You either want to push an existing branch – or create the master branch and then push it, like this: git checkout -b master; git push -u origin master; Commented Dec 12, 2016 at 0:01
  • 5
    I just got this when I misspelled the branch name. Commented May 2, 2017 at 14:58
  • 4
    My local branch was spelled "sheduler" and I was doing git push origin scheduler. HA! One letter off will kill you in programming. lol Commented Jul 17, 2017 at 17:11