首页 > 解决方案 > 当我尝试将新创建的文件推送到 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.

标签: github

解决方案


推荐阅读