Konstantin Khomoutov <flatw...@users.sourceforge.net> writes:
>   git log --reverse
> should help.

OK, that means that 

    git reset --hard $( git log --reverse --pretty=tformat:%H | head -1 )

will reset the HEAD branch, the index, and the working directory to the
"first" commit on the HEAD branch.

But you should first think through that that is what you really want to
do, i.e., to go back to that particular state of things and throw away
all changes after that.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to