chrisgrieser / nvim-tinygit

A lightweight bundle of commands focussed on swift and streamlined git operations.
MIT License
154 stars 4 forks source link

Feature: Add Git Undo Command #12

Closed kevintraver closed 6 months ago

chrisgrieser commented 6 months ago

Hmm, yeah, something as simple as this should be fine. Add it also to the readme and I can merge that

kevintraver commented 6 months ago

I changed it to use git reset --mixed HEAD~ which I think is a good compromise. I might add --soft and --hard as options later if I find it useful.

chrisgrieser commented 6 months ago

Hmm, thinking about it, I think "undo" is a bit too generic of a name. Maybe something like "undoLastCommit"?

chrisgrieser commented 6 months ago

lgtm!