If you want to push in the main branch you have to tell that before like,
git branch -m main
then you can try this
git push -u origin main