如何在GitKraken中检出commit? [英] How to checkout commit in GitKraken?
问题描述
用GitKraken检出提交似乎是不可能的.
It seems to be impossible to checkout commits with GitKraken.
如您所见,没有选项可以检出较早的提交,只有Cherrypick commit
,但我不知道这有什么用.
As you can see there is no option to checkout older commits, only Cherrypick commit
but I don't know what this is good for.
我能够通过控制台通过另一个git程序(git bash)检出:
I was able to checkout with another git program (git bash) via console:
现在在GitKraken中看起来像这样:
Now it looks like this in GitKraken:
推荐答案
GitKraken(从1.7版开始)似乎没有提供进入分离HEAD模式并直接签出提交的方法.同样,它也不允许您签出标签(因为这也将使您获得独立的HEAD).
GitKraken (as of version 1.7) does not seem to offer a way to get into a detached HEAD mode, and check out a commit directly. Similarly, it will also not allow you to check out a tag (since that would also give you a detached HEAD).
因此,您必须首先创建一个(临时)分支,然后可以签出.
So instead, you will have to create a (temporary) branch first which you can then check out.
这篇关于如何在GitKraken中检出commit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!