junegunn / gv.vim

A git commit browser in Vim
1.35k stars 54 forks source link

feat: add functionality to reset branches #71

Closed Alieff closed 1 year ago

Alieff commented 4 years ago

Reset current branch to a commit highlighted by the cursor. I provided two kind of reset, 'soft' and 'hard'

idbrii commented 4 years ago

More notably, this isn't just equivalent to .reset --hard<CR> it also stashes the user's current changes and unstashes after the reset.

This isn't a workflow I use (I'd be making branches), but it's an interesting change.