sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Add equivalent of `git checkout fa1afe1 -- .`

Open vthemelis opened this issue 1 year ago • 0 comments

Problem description

Sometimes, I want to restore the working tree files in a different commit (fa1afe1) without changing HEAD

Preferred solution

When right-clicking a commit add a 'Restore this commit's files' that effectively executes git checkout fa1afe1 -- ..

Alternatives

Instead of this specific case you could even add a 'Checkout commit for path spec' menu where a user can specify the path spec they would like.

vthemelis avatar Apr 12 '24 23:04 vthemelis