jesseduffield / lazygit

simple terminal UI for git commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional reset shortcut

unlessgames opened this issue · comments

Maybe I'm missing something but wouldn't it be handy to add an option for the Reset menu that would call

git reset --soft HEAD~1

to undo the last unpushed commit?

I don't see how this makes sense. The Reset menu is context-dependent, it works on the commit you have selected in the Commits view. It doesn't make sense to add a command there that disregards the selection.

To do what you want, select the second commit and type g s.

If you really want it, it's better suited for the Custom Command feature.

Thanks @stefanhaller and @mark2185, both of those are great!