Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to checkout commit in GitKraken?

Tags:

git

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

like image 704
Black Avatar asked Oct 11 '16 12:10

Black


People also ask

How do I checkout a tag in GitKraken?

To checkout a tag in GitKraken, simply right-click a tag from the central graph, where tags are denoted with a 🏷 tag icon. From here, you can select Checkout this commit to checkout the tag in a detached head state.

What is GitKraken checkout?

The Git checkout command tells Git to which branch or commit you want your changes applied.

How do you checkout a branch from a commit?

First, checkout the branch that you want to take the specific commit to make a new branch. Then look at the toolbar, select Repository > Branch ... the shortcut is Command + Shift + B. And select the specific commit you want to take. And give a new branch name then create a branch!


Video Answer


2 Answers

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.

like image 82
poke Avatar answered Oct 06 '22 03:10

poke


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

like image 25
DharmaTurtle Avatar answered Oct 06 '22 04:10

DharmaTurtle