如何在eGit中做相当于git rebase -i HEAD〜2? [英] How can I do the equivalent of git rebase -i HEAD~2 in eGit?

查看:138
本文介绍了如何在eGit中做相当于git rebase -i HEAD〜2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用Eclipse中的eGit将其转化为特定的分支或标签,但是我还没有找到一种方法来使用eGit来修改特定的sha1。我想这样做,以便在推送到上游之前压制承诺(即,执行 git rebase -i HEAD〜n 其中n是一些提前的地方,其中我想要rebase)。这是否可能与eGit?如果没有,还有另外一个Eclipse插件,我应该使用它将提供这个功能?

I know how to rebase onto a specific branch or tag using eGit in Eclipse, but I haven't found a way to rebase onto a specific sha1 using eGit. I'd like to do this in order to squash commits before pushing to upstream (ie, doing git rebase -i HEAD~n where n is some number of commits ago where I want to rebase). Is this possible with eGit? If not, is there another Eclipse plugin I should be using that would provide this functionality?

推荐答案

EGit有rebase,但它还没有您要求的互动rebase。

EGit has rebase, but it does not yet have the interactive rebase you ask for.

这篇关于如何在eGit中做相当于git rebase -i HEAD〜2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆