加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

mercurial – abort:未同步的远程更改?

发布时间:2020-12-20 11:17:35 所属栏目:Python 来源:网络整理
导读:我收到了这样的警告 abort: unsynced remote changes! 我如何能 1)看看有什么区别? hg diff? hg状态? 2)协调代码? 提前致谢.这是我运行hg检查头部的原因 $hg heads?ndring: 192:e571b17295e9m?rke: tipf?r?lder: 175:f50d4c4461e5anv?ndare: tekniklasda
我收到了这样的警告

abort: unsynced remote changes!

我如何能
1)看看有什么区别? hg diff? hg状态?
2)协调代码?

提前致谢.这是我运行hg检查头部的原因

$hg heads
?ndring:     192:e571b17295e9
m?rke:       tip
f?r?lder:    175:f50d4c4461e5
anv?ndare:   tekniklas
datum:       Sat Jan 08 04:45:07 2011 +0000
kortfattat:  twitter support added

?ndring:     191:9e419ce3e7e1
anv?ndare:   tekniklas
datum:       Wed Mar 09 12:56:27 2011 +0000
kortfattat:  adsense maps

?ndring:     159:f8d974793b12
f?r?lder:    157:ef1d955b9236
anv?ndare:   tekniklas
datum:       Sat Dec 18 17:05:45 2010 +0000
kortfattat:  remove

?ndring:     89:008a2ac46b4f
anv?ndare:   tekniklas
datum:       Sun Aug 01 07:10:40 2010 +0000
kortfattat:  classifiedsmarket/market/market_ad_preview.html

ubuntu@ubuntu:/media/Lexar/montao$

解决方法

您必须在推送之前提取最新更改:

hg pull

要在拉前查看差异:

hg in

在拉动之后,您必须将您已经提取的更改与您尝试推送的更改合并:

hg merge

合并后,你必须提交你的合并:

hg commit

最后推送没有错误:

hg push

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读