Quantcast
Viewing latest article 19
Browse Latest Browse All 52

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

Just wanted to mention this addition to the accepted solution. It wasn't immediately obvious to me the first time I tried this method (maybe it should have been), but to apply the stash from the hash value, just use "git stash apply ":

$ git stash apply ad38abbf76e26c803b27a6079348192d32f52219

When I was new to git, this wasn't clear to me, and I was trying different combinations of "git show", "git apply", "patch", etc.


Viewing latest article 19
Browse Latest Browse All 52

Trending Articles