문제

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

도움이 되었습니까?

해결책

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top