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

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

$
0
0

You can follow the below process step by step:

1- use below to list all unreachable commitsgit fsck --unreachable

2- to show unreachable commit hash bygit show hash

3- copy all log, you can see log like, unreachable blob, commit, tree.

4- apply git stash with log having commit hashgit stash apply [replace hash]


Viewing all articles
Browse latest Browse all 55

Trending Articles