Use git push to appear main -> main (fetch first)

This problem may be that the content of the two places is different, that is, you have made changes to the files in the local warehouse, but have not updated them on GitHub. There are other ways, like typing in git

git fetch --all &&  git reset --hard origin/master && git pull

Mandatory update.
Or simply delete the local warehouse and re-clone it from the Internet.

Guess you like

Origin blog.51cto.com/15093262/2620546