Can I recover a GIT stash from a fetch
git, git-fetch, git-stash, linux
Solution
Sorry, I don't believe you can recover from this. (arguably, if you could, it would be a security risk; someone might have stashed a password inside of a configuration file or something.)
From the documentation (`git fetch --help`): `Fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them.`
Key word: named heads. Sadly, the stash isn't a named head (or a tag).
Problem
I've got a git repo, and my colleague had a clone of that on his PC. For whatever reason, we've lost his repository due to technical issues. A short while before we lost his repo, he stashed some work, and I did a `git fetch` followed by a `git merge master`. Is it possible to get the content of the stash? Would the `git fetch` command have pulled the stash over as well? I can view all the remote branches with `git branch -a` but I need the stashed data. We're running `git version 1.6.3.3` on `Ubuntu 9.10 Karmic`