Git error: src refspec refs/heads/master does not match any

0 votes
added Jul 11, 2019 in Git by LC Marshal Captain (25,790 points)

This is normally occurred for a kickoff stage right after you clone the remote repository to your local. Simply fix it by add and commit your change before push.

git add .
git commit -m "kickoff files for project"
git push - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.