Home > Enterprise >  Github : Error: src refspec master does not match any
Github : Error: src refspec master does not match any

Time:09-28

I have an issue to push file to my repo.

I have this error message : Error: src refspec master does not match any, as seen here:

screenshot

Can someone help me get past this error?

CodePudding user response:

If there is no branch at all, check if you have at least one commit:

git log --oneline --decorate --graph --all --branches

If not, try at least to make one commit:

git status
git add .
git commit -m "first commit"
git push -u origin master

Check

  • Related