phpstrom - git push 失败

浏览:34日期:2023-09-21

问题描述

git push 远程仓库失败

我先把远程仓库pull 到本地仓库

phpstrom - git push 失败

phpstrom - git push 失败

现在 local——dev-v1 和 origin——dev-v1 是同步的

然后谁便改点什么后提交

phpstrom - git push 失败

phpstrom - git push 失败

phpstrom - git push 失败

现在提交本地的,象征性pull下来的看看有没冲突

phpstrom - git push 失败

phpstrom - git push 失败

phpstrom - git push 失败

是没冲突的,然后push

phpstrom - git push 失败

phpstrom - git push 失败

悲剧了...

问题解答

回答1:

看提示,服务器端的变更没有合并到本地,再看提示,merge一下就好。追究原因的话,最后安装个git客户端程序,进入git bash,git status看一下就明白了。

回答2:

一楼兄弟回答的很好,你试试看是不是本地和远程版本不一致,合并之后应该就可以push了。试试看

回答3:

大哥我有个建议,你用命令可好,方便快捷,或者有个工具叫做sourcetree,也很好用

相关文章: