Resolve src refspec main does not match any GitHub Error in Terminal on Mac - DevPops-Inc/windows GitHub Wiki

• The following resolution for if you receive src refspec main does not match any error when trying to push main origin.
image

• Type git add . and press the “return” key to stage the files in the repo to the index.
image

• Type git commit -m “initial commit” and press the “return” key to commit the changes with the message that it’s the initial commit.
image

• Type git push -u origin main and press the “return” key to push the changes to GitHub repo.
image