I’m following exactly what they say on this page and everything is working until
git push origin main
then I get this error
error: failed to push some refs to ‘https://github.com/ryanherter-me/Academind2.git’
Not sure what exactly this means or how to fix it?
You’ve left out the -u
, it says git push -u origin main
Any and all help is greatly appreciated
error: src refspec main does not match any.
This means the ref main
you’re trying to push doesn’t exist on your machine. The output from the commit
command shows your branch is actually called master
. You can use the following command to rename the branch to main
:
git branch -m master main