From: Daniel Convissor <danielc@analysisandsolutions.com>
To: Adam A <hitsthings@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Bug: Pulling remotes into an empty repo deletes the index
Date: Sat, 3 Aug 2013 12:59:23 -0400 [thread overview]
Message-ID: <20130803165923.GD945@analysisandsolutions.com> (raw)
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@{<desired number>}
git log
git checkout master
git cherry-pick <hash of your first local commit>
--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
prev parent reply other threads:[~2013-08-03 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAJOTJ-AVamimToPo4oQ=O_Pg+mJHQhardO+NfU8b1dvRxg1KMA@mail.gmail.com>
2013-08-03 12:01 ` Bug: Pulling remotes into an empty repo deletes the index Adam A
2013-08-03 16:39 ` Daniel Convissor
2013-08-03 16:57 ` Jonathan Nieder
2013-08-03 17:01 ` Daniel Convissor
2013-08-03 21:46 ` Adam A
2013-08-10 7:33 ` Jeff King
2013-08-03 16:59 ` Daniel Convissor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130803165923.GD945@analysisandsolutions.com \
--to=danielc@analysisandsolutions.com \
--cc=git@vger.kernel.org \
--cc=hitsthings@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.