gpt4 book ai didi

mercurial - 本地 Mercurial - 远程 SVN

转载 作者:行者123 更新时间:2023-12-05 00:38:53 25 4
gpt4 key购买 nike

我非常喜欢 Mercurial。但我工作的大多数公司还没有准备好改用 Mercurial。所以我想知道是否有一种方便的方法来使用本地 Mercurial 存储库并将其提交(否则我会推送到我的远程 Mercurial 存储库)到公司的 svn。作为 MercurialEclipse 用户,我更喜欢可以轻松集成到我的工作流程中的解决方案。

最佳答案

看看WorkingWithSubversion .

当您想将更改直接推送到 svn 中时,您首先从 svn 中提取最新的更改,然后将您的更改重新设置到 svn HEAD 并将它们推回。

$ hg pull --svn # pull the changes from svn
$ hg up your_head # update the repo to the head of the changes you want to push to svn
$ hg rebase --svn # rebase your_head onto svn
$ hg push --svn

关于mercurial - 本地 Mercurial - 远程 SVN,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5118077/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com