Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to git checkout such a particular commit using GitKraken?

I am using GitKraken, a gui client of git vcs. GitKraken is also a single place for all my Git repositories. But i didn't find any option where i can go such a particular commit that i have already used in my git bash using "git checkout " command.

like image 331
Shojib Flamon Avatar asked Nov 25 '17 15:11

Shojib Flamon


People also ask

How do I checkout a specific commit in git?

To checkout a previous commit, you will use the Git checkout command followed by the commit hash you retrieved from your Git log.

What is the syntax to checkout a particular branch in git?

New BranchesGit checkout works hand-in-hand with git branch . The git branch command can be used to create a new branch. When you want to start a new feature, you create a new branch off main using git branch new_branch . Once created you can then use git checkout new_branch to switch to that branch.


1 Answers

See "Checkout a branch":

You can right-click on any commit, select "create a branche here", and checkout that branch.

Gitkraken creat branch here option for commit

That way, you will avoid the detach HEAD branch, and will switch to the expected commit.

like image 199
VonC Avatar answered Sep 18 '22 03:09

VonC