From: Patrick Doyle Date: Thu, 11 Nov 2010 17:39:20 GMT Subject: Re: How to recover a lost commit... Message-ID: In-Reply-To: <20101111165023.GB16972@burratino> On Thu, Nov 11, 2010 at 11:50 AM, Jonathan Nieder wrote: > Couldn't > >        $ git merge --no-commit svn_to_git_wip >        $ git reset > > have worked? Hi Jonathan, Thanks. That's where I started (although I also added the --no-ff flag to the git-merge command) , but then I decided to get fancy and switched to the svn_to_git_wip branch and rebase it on master first. In hindsight, I was trying to be to clever for my own good. But I figured I could always undo any mistakes. I was just surprised to find that my work-in-progress had disappeared despite the fact that I hadn't done a commit. (It's possible/likely that I did an implicit commit when I was playing with rebase.) Anyway, next time I'll use git-stash, and in the future, I'll be much more paranoid about using git-reset. --wpd