How to move a branch backwards in git?

Posted by karlthorwald on Stack Overflow See other posts from Stack Overflow or by karlthorwald
Published on 2010-05-27T16:44:04Z Indexed on 2010/05/27 17:01 UTC
Read the original article Hit count: 256

Filed under:
|

The title is not very clear. What I actually need to do often is the following:

Let's say I have a development going on with several commits c1,c2,... and 3 branches A,B,C

c1--c2--c3--(B)--c4--(A,C)

Branch A and C are at the same commit.

Now I want branch A to go back where B is, so that it loks like this:

c1--c2--c3--(A,B)--c4--(C)

Important is that this has to happen locally and on github.

Sorry for my bad git speak, I hope I can make clear what it is.

© Stack Overflow or respective owner

Related posts about git

Related posts about github