How to checkout commit in GitKraken?

2020-05-25 04:09发布

It seems to be impossible to checkout commits with GitKraken.

Gitkraken commits options

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.

EDIT: I was able to checkout with another git program (git bash) via console:

console

Now it looks like this in GitKraken:

gitkraken current head on specific commit

标签: git gitkraken
4条回答
▲ chillily
2楼-- · 2020-05-25 04:43

They finally implemented this feature yesterday (Sept. 25th, 2019).

Users can now enter a detached HEAD state by clicking the commit you wish to checkout and selecting Checkout this commit.

enter image description here

查看更多
倾城 Initia
3楼-- · 2020-05-25 04:50

You can make a UNDO in the top bar. Anothe option can be reset to another commit using the right click on the commit.

查看更多
时光不老,我们不散
4楼-- · 2020-05-25 05:02

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.

查看更多
小情绪 Triste *
5楼-- · 2020-05-25 05:06

The way you do this is by right clicking on your desired commit and select "Reset to this commit" and then choose "Hard - Discard all changes"

查看更多
登录 后发表回答