【发布时间】:2016-09-29 18:35:08
【问题描述】:
我正在尝试将我的文件推送到 GitHub 上的存储库,但我收到了错误消息。谁能帮忙解释一下我做错了什么?
正在抛出错误消息,但我无法理解(我是 Git 新手...)
git push -u origin master
> To https://github.com/URL ! [rejected] master -> master (fetch
> first) error: failed to push some refs to 'https://URL' 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.
任何帮助将不胜感激。
【问题讨论】: