error: src refspec master does not match any.

Posted on

Started a new react app and wanted to get it on github

Got this error when  I ran

//git push -u origin master

error: src refspec master does not match any.

error: failed to push some refs to “repo address”

what was the problem?

I didnt have any commits!

one commit and push later all is well

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s