lazygit
lazygit copied to clipboard
Warn the user about their local files when deleting a commit
Is your feature request related to a problem? Please describe. So I have a pre-commit hook on a repo. It raised an error so I was looking for what file may have triggered the error. I made temporary test commits for each file until I found the culprit. So I fixed it, decided to delete my commits, only to realize that it deleted progress on my files locally, through rebase.
Describe the solution you'd like
It would be great if it showed an additional warning telling the user that deleting a commit with d
will also affect their files locally.
Describe alternatives you've considered
For now, selecting a commit, pressing g
, then soft reset
is the way to go.
Also, an additional prompt letting the user select between a soft and hard change when deleting a commit would be nice.
Additional context N/A
What was your expectation of what would deleting a commit do?
It is the same as drop
in an interactive rebase, if you want to reset
then you press g
, as you already surmised.