首页 > 解决方案 > git push 被拒绝:更新被拒绝,因为远程包含您所做的工作提示:本地没有

问题描述

 [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@git.wpengine.com:production/<sitename>.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.

当我尝试将更改推送到生产时,我看到了这个错误。我确实尝试了所有建议的可能性,但我仍然遇到这种情况。

不知道是什么导致了这个问题。它是否与将旧分期推到生产中产生问题有关?

坚持了几个小时,任何帮助将不胜感激。

标签: gitbitbucket

解决方案


推荐阅读