jesseduffield / jesseduffield/lazygit

undo stash drop

Open
#4,491 0 comments 2 reactions 0 assignees View on GitHub
enhancement
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.**
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 `. But I'm too lazy to script it into a single command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.