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

Python 错误:无法将某些引用推送到';https://github.com/E-wave112/myadmissionportalsite2.git',python,django,git,Python,Django,Git,我试图通过命令行上的git将django文件和文件夹推送到git存储库 我推送文件的步骤包括: git初始化 git add--all git commit-m“我的消息” git远程添加源(远程url) 最后 git-push-u源主机 然后我得到这个错误: ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/E-wave112

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

我推送文件的步骤包括:

git初始化

git add--all

git commit-m“我的消息”

git远程添加源(远程url)

最后

git-push-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