It *is* written in the man page...

--hard

    Matches the working tree and index to that of the tree being switched
> to. Any changes to tracked files in the working tree since <commit> are
> lost.


Git is really very stubborn about deleting things.. as long as they have
been committed.  If they're not committed, well, there's not a lot that can
be done.  As I said before, commit often and come back and clean things up
after.

On Thu, Sep 2, 2010 at 12:33 PM, Lorenzo Paulatto <[email protected]> wrote:

> Thank you for all your answers, I'm not quoting anyone in particular
> because I'll answer a bit to all of you.
>
> First of all the good news: git reflog is actually the solution: following
> some advice I found on the web, I reverted back to the first dangling commit
> and could recover my data.
>
> The bit of bad news is that afterwards the git repository was sort of
> corrupted, and I'm not able to use it any more. I'm not particularly
> interested in fixing it now, I think I've had enough.
>
> I don't want to troll, but I don't feel comfortable using a versioning
> systems that could just delete a bunch of random files, going as far as
> changing to the parent directory to ensure that destruction is complete.
> Well, it could have at least been written in the git-reset man page.
>
> Thank you again, your advices were very helpful. It's just that git is not
> made for me, or I'm not made for git.
>
>
> --
>
> --
> 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]<github%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/github?hl=en.
>
>

-- 
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.

Reply via email to