【发布时间】:2022-04-23 21:39:37
【问题描述】:
我正在尝试将我的 django 项目推送到 Gihub
我已经安装了 Github for windows 和 Git CLI
并遵循所有步骤
- 首先在 github 上使用自述文件创建了一个 Repo(默认)
- 创建了一个简单的 django 应用程序
- git 初始化
- git 添加。
- git commit -m "第一次提交"
- git远程添加源https://github.com/eMahtab/DjangoProject.git
- git push origin master
但在最后一步我遇到了错误
To https://github.com/eMahtab/DjangoProject.git
! rejected master -> master (fetch first)
error: failed to push some refs to https://github.com/eMahtab/DjangoProject.git
hint: Updates were rejected because the remote contains work that you do not have
locally. This is usually caused by another repository pushing to the same ref. You may
want to first integrate the remote changes (e.g., git pull ...) before pushing again.
See the Note about fast-forwards in git push --help for details.
【问题讨论】:
标签: git github github-for-windows