When I run
git push -u origin main on the terminal, it says
error: src refspec main does not match any.
But when I run
git push -u origin master, it works correctly and it creates another
master branch in the repo along with the default
main branch and the total branches will be 2.
At this point, I can't do a PR to merge the
master to the
main and the error message is
there's no diff between master and main branches.
Can anyone explain this condition and give me a working solution? Your support will be highly appreciated.