JShoe JShoe - 2 months ago 35
Git Question

Git master branch has no upstream branch

I'm trying to push one of my projects to github, and I keep getting this error:

fatal: The current branch master has no upstream branch.

I've never seen this before. I re-initialized my git, re-added my origin, deleted and re-made the repo, and recreated my SSH key.


Create the repo on github; add a README file on github and then clone the github repository. Creating the README file (or any file actually) is needed in order to get a master branch.

Notice how github prompts for creating a README when creating a repository: enter image description here