If you get the following error:
Code language: plaintext (plaintext)error: src refspec main does not match any error: failed to push some refs to 'https://github.com/ao/xxx.git'
This is because you probably haven’t committed any files to git yet!
How to fix this
Make sure to add your files, if they have not been added yet:
Code language: Bash (bash)git add .
Commit your files:
git commit -m "your commit message"
Code language: Bash (bash)
Push your changes to the git repo, remember to swap out the branch name as appropriate:
Code language: Bash (bash)git push origin main