Hello, 2011/7/25 Brandon Casey <brandon.casey.ctr@xxxxxxxxxxxxxxx>: > On 07/25/2011 10:45 AM, Péter András Felvégi wrote: >> Hello, >> >> 'git stash pop' erased my local modifications, but not all of them. > > Hi, > > I cannot reproduce this. What version of git are you using? git 1.7.5.4 on Debian Wheezy AMD64 > > Can you produce a test case? This could be a test repo that > you can share or a sequence of commands to produce such a > repo like: Not likely, but I will try. My repo started as CVS, then converted to SVN, and about a year ago, I switched to GIT. It has 5+ years of history, 9k+ commits, multiple branches, merges. What I checked so far is that: - the stash on 089709b I was popping is of 2011.03.01 - since then, a lot of commits and fast forward merges were done on the branch - there were some rebase -i's to squash commits together, but I was careful not to alter commits already pushed to the central repo Since yesterday, I found out that my branch diverged: # Your branch and 'origin/20110207-oracle' have diverged, # and have 11 and 9 different commit(s) each, respectively. I don't know how can this happen, because I only pull/push to/from the central repo, and noone else is using it. When I pulled, there were merge conflicts, earlier versions of the files showing up. There were 3 files, SQLQueryCache cpp/hpp and AdsPlugin.cpp. I resolved the commits by keeping the HEAD versions. What is interesting is that the stash item that caused the problems is still there, despite that it was popped: $ git stash list stash@{0}: WIP on 20110207-oracle: 089709b Merge branch '20110207-oracle' of ssh://... into 20110207-oracle $ git stash show build-configs.def | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) I made a copy of my local repo, and the central one, too, but I don't really know what to do now. The state of the repo before the pop is lost, unfortunately. Is there some option for git to log its actions, so that in cases like this one could check on the inner workings? Regards, Peter -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html