in Technology by (1.8m points)
What is mean by 'src refspec master does not match any when pushing commits in Git?

1 Answer

0 votes
by (1.8m points)

mkdir repo && cd repo
git remote add origin /path/to/origin.git
git add .

Oops! Never committed!

git push -u origin master
error: src refspec master does not match any.

All I had to do was:

git commit -m "initial commit"
git push origin master

Success!

Related questions

0 votes
asked Feb 6 in Education by JackTerrance (1.8m points)
...