Quantcast
Channel: How do I recover a dropped stash in Git? - Stack Overflow
Viewing all articles
Browse latest Browse all 55

Answer by emragins for How do I recover a dropped stash in Git?

$
0
0

Windows PowerShell equivalent using gitk:

gitk --all $(git fsck --no-reflog | Select-String "(dangling commit )(.*)" | %{ $_.Line.Split('')[2] })

There is probably a more efficient way to do this in one pipe, but this does the job.


Viewing all articles
Browse latest Browse all 55

Trending Articles