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

Advertisement

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 )

Facebook photo

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

Connecting to %s