Skip to content

undo stash drop #4491

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

Open
Myouboku opened this issue Apr 16, 2025 · 0 comments
Open

undo stash drop #4491

Myouboku opened this issue Apr 16, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Myouboku
Copy link

Is your feature request related to a problem? Please describe.
If I use lazygit to compensate my smooth brain, I might encounter a frustrating situation where I drop my stash instead of popping it. Forcing me to use plain git to restore it, giving me nightmares.

Describe the solution you'd like
If I drop a stash, I would like to easily press "z" to undo the drop.
This feature request might be closed due to "skill issue" but if this is the case I would really appreciate to know at least a way to implement this myself in lazygit.

Describe alternatives you've considered
Right now I run alias git='LANG=en_GB git' followed by git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk to find the commit hash I just dropped then restore it with git stash apply <hash>. But I'm too lazy to script it into a single command.

@Myouboku Myouboku added the enhancement New feature or request label Apr 16, 2025
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

1 participant