On Thu, Sep 2, 2010 at 11:03 AM, Scott Chacon <[email protected]> wrote:
> "git reflog" will find the abandoned data and you can put a branch
> pointer there again.
In addition to this, any data that you had run 'git add' on but not
committed will be in the repository *somewhere* as well. If 'git
reset' deleted it, then it must have been 'git add'ed at some point.
So you can be relatively sure that all your data is around
*somewhere*.
I suggest trying Scott's 'git reflog' suggestion first. If you then
find that you had some uncommitted files that have been blown away,
you can try to track them down (the hard way) using 'git fsck
--unreachable' to list all objects that aren't in a commit. You can
then do
git show (objectid) >filename
To see what's inside each one.
Hope this helps.
Avery
--
You received this message because you are subscribed to the Google Groups
"GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/github?hl=en.