I had the same issue. Replacing name "main" to "master" solved it for me.
git push origin master
instead of
git push origin main