chrisgrieser / nvim-tinygit

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

Feature Idea: Undo Last Commit #11

Closed kevintraver closed 6 months ago

kevintraver commented 6 months ago

Feature Requested

Would be helpful to quickly undo the last commit:

git reset --soft HEAD~1

Could maybe even have an optional parameter that does a hard reset:

git reset --hard HEAD~1

Relevant Screenshot

No response

Checklist

chrisgrieser commented 6 months ago

I also thought about this one, but decided not to implement it, since you can already do that with telescope's git_commits.

kevintraver commented 6 months ago

Ah, yes I see now you can do that in telescope.

Would you still be open to also implementing it in nvim-tinygit?

Currently I open up a terminal use git-extras undo command.

I was just thinking it would be nice to be able to set a nvim-tinygit keymap and not have to open telescope or use a terminal.

kevintraver commented 6 months ago

Could be something simple like this: #12