How to checkout commit in GitKraken?

牧云@^-^@ 提交于 2019-12-03 04:14:15

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.

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.

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

Right clicking the desired commit and selecting "Reset HEAD to this commit" seems to work for me. I'm on a Mac with GitKraken v 6.0.1.

Make sure you stash any uncommited changes.

It's possible you may already need to be in a detached state for this to work.

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"

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!