How can I reset (hard or soft) my current branch to a different commit?
git reset --hard COMMIT_ID
e.g.
git reset --hard 0f347f
With SourceTree you would probably right click on the commit and do a checkout (discard changed) or something
I know how I can do that on command line, but I want to avoid command line at all. BTW, the Reset toolbar button exists, but is disabled.
As Colin says, right-click a commit in the log and select 'Checkout'. You can also use the Checkout toolbar button / menu item and select an item from the list in the dialog.
I've tried, but Checkout just changes what working tree state I will have. It does not move my current branch to the selected commit. Is the Reset feature missing in SourceTree though a toolbar button with this name already exists?
It looks like you're new here. Sign in or register to get started.