Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
341 views
in Technique[技术] by (71.8m points)

git - How to checkout commit in GitKraken?

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

question from:https://stackoverflow.com/questions/39977015/how-to-checkout-commit-in-gitkraken

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...