How do I fix these spurious git commits?

Posted by James Wenton on Stack Overflow See other posts from Stack Overflow or by James Wenton
Published on 2010-04-10T21:25:48Z Indexed on 2010/04/10 21:33 UTC
Read the original article Hit count: 251

Filed under:

I made an error when I was working and wound up with a commit tree I didn't want. Right now, things look like this:

[master]
        A -- B -- C -- D
              \
               \
                C' -- D'
                      [HEAD]

I want to wind up like this:

                        [master, HEAD]
        A -- B -- C -- D

How do I get there from here?

© Stack Overflow or respective owner

Related posts about git