From: Daniel Convissor Date: Sat, 03 Aug 2013 16:59:23 GMT Subject: Re: Bug: Pulling remotes into an empty repo deletes the index Message-ID: <20130803165923.GD945@analysisandsolutions.com> In-Reply-To: <20130803163915.GB945@analysisandsolutions.com> Hey Again Adam: On Sat, Aug 03, 2013 at 12:39:15PM -0400, Daniel Convissor wrote: > > All is not lost. Your local files should be stored in the repository's > reflog. Examine the output of "git reflog". You can then reset your > working directory to obtain those files by doing something _like_ > "git reset --hard HEAD@{1}". A further thought. The most useful thing to do would probably be along these lines... git reflog # as mentioned before git checkout -b myinitialstuff HEAD@{} git log git checkout master git cherry-pick --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335