如何交互式地选择樱桃 [英] How to cherry-pick interactively
本文介绍了如何交互式地选择樱桃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在一个分支上砍了一段时间,而这个分支不会很久才合并。但是有一些提交我想在主控中合并。
有没有办法获得一个交互式樱桃选择,它会显示提交及其提交变化,然后让我选择我实际上喜欢挑选的那些?
您可以通过使用 gitk --all
提交图表,然后右键单击您希望挑选到当前分支的提交。 I have hacked on a branch for a while, and this branch won't be merge before long. But there are some commits I'd like to merge in the master anyway.
Is there a way to get an interactive cherry-pick, that would show the commits and their changes, and then let me select the ones I'd actually like to cherry-pick?
解决方案
You can do that via the commit graph using gitk --all
, and right clicking on the commit that you wish to cherrypick to your current branch.
这篇关于如何交互式地选择樱桃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文