One way to do it:
Check out the last good commit:
git co <lastgoodSHA1>
Delete the old branch (current head is still on last good
git br -D online
Recreate the old branch (with HEAD now pointing to last good
git co -b online
On Thursday 10 February 2011 04:58:21 pm Daniel Trezub
> I've messed with the history of one of my branches. Now
> it looks like this: http://twitpic.com/3yfhrk
> I want to get rid, delete, kill, bury, purge or however
> you can call the complete removal of the commits in the
> branch "online". I don't even mind about deleting the
> branch "online" itselve (it was just a test").
> I've already tried rebase, reset --soft, reset --hard and
> some others I cannot remember, but the history just got
> messier :(
> Any idea, please?
> Daniel Trezub
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at