jesseduffield / jesseduffield/lazygit
Warn the user about their local files when deleting a commit
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**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
Contributor guide
Assessment
This issue has not been assessed yet.