github - 当我尝试将新创建的文件推送到 GitHub 存储库时,我收到以下错误,为什么会出现此错误?
问题描述
我不明白为什么会出现这个错误,请帮忙。以前我已经将许多文件推送到我的 gitHub 存储库中。仅发生此时间错误。
! [rejected] gh-pages -> gh-pages (fetch first)
error: failed to push some refs to 'https://github.com/Subhra-commits/Coursera_Course.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.
解决方案
推荐阅读
- c# - Azure IQueueClient:如何模拟传入消息?
- javascript - Vue i18n - 如何在 i18n 组件选项中获取当前语言环境?
- php - 数据库连接在线失败,在本地主机上工作
- javascript - Puppeteer:如何在不使用评估的情况下获取父节点?
- react-native - 在 react-native-chart-kit 中修改标签的宽度
- python - 如何编写单元测试来测试删除模型中的记录
- excel - 将 Shared JS 运行时从预览模式转移到稳定模式
- c++ - 循环与索引
- javascript - 即使更改网络,如何始终通过网络连接到本地服务器?
- c - 警告是什么以及如何解决:格式“%p”需要“void *”类型的参数,但打印出来时参数 2 的类型为“int *”[-Wformat=]