GitHub upload failed: git push error: failed to push some refs to exception handling


When GitHub created the project, the code was uploaded and the file was manually added to GitHub, but the local warehouse did not update the file.


First, pull the files from the remote code base to the local code base, and then push the new code to the GitHub code base

Use the command to pull: git pull -- rebase origin master
and then upload: git push - U origin master

Read More: