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 
commit):

  git br -D online

Recreate the old branch (with HEAD now pointing to last good 
SHA1:

  git co -b online


-Martin

On Thursday 10 February 2011 04:58:21 pm Daniel Trezub 
wrote:
> Hail!
> 
> 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?
> 
> Thanks!
> =====
> Daniel Trezub
> http://www.gameblogs.com.br
> 

-- 
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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to