我试图让hg-git扩展在Windows下工作,经过几个小时的努力,我似乎终于让它工作了。然而,在我的git存储库中没有显示任何内容,即使hg push的输出为:
importing Hg objects into Git
creating and sending data
github::refs/heads/master => GIT:8d946209
[command completed successfully Wed Oct 20 15:26:47 2010]发布于 2010-10-21 04:30:28
似乎就在我问了这个问题之后,我做了一个小小的改变。这是拿起并推送的。因此,为了让hg-git获取它,您似乎必须等到您进行了新的提交。
发布于 2012-06-10 23:55:05
尝试发出命令hg bookmark -f master
(使用-f强制移动现有书签)
然后再试着推一次。
这之所以有效,是因为Hg-Git pushes your bookmarks up to the Git server as branches和会拉下分支并将它们设置为书签。(来自官方README.md)
发布于 2013-06-12 19:27:32
我选择了“用自述文件初始化这个存储库”。这意味着我最终得到了两个头,我不能hg merge,因为其中一个有书签。
为了让推送工作,我必须:
根据来自github的https://blog.glyphobet.net/essay/2029
hg heads一起使用哪个id ),
这以如下命令结束(在<x>部分中替换)
hg pull github
hg update
hg merge <revision-id-of-incoming-git-version>
hg addremove
hg commit -m 'merged with github'
# make some trivial change to a file - eg add a space where it doesn't cause harm
hg add <changed-file>
hg commit -m 'trivial change'
hg bookmark -f master
hg push github确保你为上面的合并选择了远程版本-如果你不这样做,它就不会工作!
https://stackoverflow.com/questions/3982006
复制相似问题