Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 吉特'的汞当量;s壁球合并_Git_Merge_Mercurial_Branching And Merging - Fatal编程技术网

Git 吉特'的汞当量;s壁球合并

Git 吉特'的汞当量;s壁球合并,git,merge,mercurial,branching-and-merging,Git,Merge,Mercurial,Branching And Merging,我为一个小功能创建了一个命名分支,现在我想将其合并到默认分支,但不推送该功能分支 在git中,我可以进行git合并--挤压我的功能。Mercurial中的等价物是什么?或者有其他替代物吗?Git的“挤压合并”根本不是合并。它使用合并机制来复制一组其他提交的效果,并使用合并基查找机制来确定要应用的差异,但它只是将这些更改作为新的独立提交直接应用: ...--o--B--o--@ <-- you-are-here \ Q--R--S <--

我为一个小功能创建了一个命名分支,现在我想将其合并到默认分支,但不推送该功能分支

在git中,我可以进行
git合并--挤压我的功能。Mercurial中的等价物是什么?或者有其他替代物吗?

Git的“挤压合并”根本不是合并。它使用合并机制来复制一组其他提交的效果,并使用合并基查找机制来确定要应用的差异,但它只是将这些更改作为新的独立提交直接应用:

...--o--B--o--@    <-- you-are-here
         \
          Q--R--S   <-- stuff-you-want-to-squash

…--o--B--o--@Full命令
hg-rebase--keep--collapse--s commit--s hash--u我的功能中的第一次提交--d分支默认值
进一步阅读: