当我输入命令"git push origin master"时会出现这种情况。我需要做什么才能使命令正常工作?


! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/Gavinh444/website13.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

该错误消息说明了问题所在,远程存储库具有您没有的工作。你需要git pull并完成这项工作,然后才能推动。

最新更新