We use Git for out repo. I've no idea how but my team's latest history ended up like this:
0 master
\
1-2-3-4-5-6-7 branch1 & branch2
Notice how (thankfully) nobody has merged this with our master branch yet. Now, I want to split that to end up like this:
5-6-7 branch2
/ \
0 - - - (*) - - (*) master
\ /
1-2-3-4 branch1
I'm not experienced with Git and I'd like to know how to achieve that