Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add confirmation before reset --hard if there are local changes #3709

Open
abaza738 opened this issue Jul 1, 2024 · 1 comment
Open

Add confirmation before reset --hard if there are local changes #3709

abaza738 opened this issue Jul 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@abaza738
Copy link

abaza738 commented Jul 1, 2024

Description

When having local changes and performing git reset --hard, it would be beneficial for the developer to warn for local uncommitted changes. I speak with tears in my eyes after I lost all my changes yesterday. I understand that it is my fault, and I am not blaming lazygit.

Proposed solution

A confirmation popup with the option of auto-stashing local changes before performing git reset --hard.

@abaza738 abaza738 added the enhancement New feature or request label Jul 1, 2024
@noahfraiture
Copy link
Contributor

Hello,
I opened a PR about that issue but there seems to not be easily doable because of the way things are done. More explication here #3714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants