错误:无法将某些引用推送到"https://github.com/E-wave112/myadmissionportalsite2.git"



我正试图通过命令行上的git将我的django文件和文件夹推送到我的git存储库

我推送文件的步骤是:

git初始化

git add—所有

git commit-m";我的消息";

git远程添加来源(远程url(

最后是

gitpush-u原始主

然后我得到这个错误:

! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/E-wave112/myadmissionportalsite2.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 push origin master --force

相关内容

最新更新