git pull报错Your branch and 'origin/master' have diverged, and have 1 and 1 different commits each, r

左手的ㄟ右手 2024-04-17 05:45 154阅读 0赞

当我们在本地提交到远程仓库的时候,如果遇到上述问题,我们可以首先使用如下命令:

git rebase origin/master

然后使用

git pull —rebase

最后使用

git push origin master

把内容提交到远程仓库上。

发表评论

表情:
评论列表 (有 0 条评论,154人围观)

还没有评论,来说两句吧...

相关阅读