gpt4 book ai didi

mercurial - Mercurial 中的 rebase 命令有什么优点?

转载 作者:行者123 更新时间:2023-12-03 07:19:09 27 4
gpt4 key购买 nike

与标准推/拉相比,在 Mercurial 中使用 rebase 命令有什么优势?

最佳答案

This post有一个很好的解释:

The answer lies in rebasing. Rebasing is a technique made popular by git where you rewrite your not-yet-pushed patches so that they apply against the current remote tip, rather than against the tip of the repository you happened to last pull. The benefit is that your merge history shows useful merges—merges between major branches—rather than simply every single merge you did with the upstream repository.

正常的拉取、 merge 、推送序列将创建大量提交,这些提交对于存储库的历史记录来说并不是很有用。 rebase 有助于消除这些问题。

关于mercurial - Mercurial 中的 rebase 命令有什么优点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2516439/

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