Skip to content

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

@abaza738

Description

@abaza738

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions