## 05 src refspec does not match any (plain git init, Git 2.43 default branch) $ git push -u origin master error: src refspec master does not match any error: failed to push some refs to '../r5.git' [exit 1] # answer: commit, then git push origin main (as written) $ git commit -m initial commit [master (root-commit) f128e18] initial commit 1 file changed, 1 insertion(+) create mode 100644 a [exit 0] $ git push origin main error: src refspec main does not match any error: failed to push some refs to '../r5.git' [exit 1] # with the branch the repo actually has $ git branch --show-current master [exit 0] $ git push origin master To ../r5.git * [new branch] master -> master [exit 0]