From: Andrew Ardill Date: Fri, 02 Sep 2011 01:52:56 GMT Subject: Re: git-checkout silently throws away the dirty status of index without a warning? Message-ID: In-Reply-To: > I accidentally switch to the switched-to branch without committing the > intermediate status. > The 'work' was gone, and I had no idea how to bring it back. Forgive me if I am missing something here, but can't you use reflog to go back to the point just before you checked the switched-to branch out? I guess the question is in general, how do you revert to a previous instance of the working index AND previous checked out branch? I don't know the 'switch branch with modified working index' mapping well enough to be able to determine if there is a bijection possible, a concise description of it would probably show us. If not, the only way to achieve this is to keep the history available. Regards, Andrew Ardill