push to origin code example
Example: git push origin
git branch -M main
then
git push -u origin main
or
git push -f origin main
or
git push origin master --force
git branch -M main
then
git push -u origin main
or
git push -f origin main
or
git push origin master --force