I have a quite strange git request. Here's a portion of my git history:
-----2----- master
/ \
/ 3--- new dev
--1 old dev
- 1 come from a deleted dev branch
- 2 is a merge of the deleted dev branch with master
- 3 is a new dev branch derived from master
I would like to connect 3 to 1 like this:
-----2----- master
/
---1---3--- dev
The old dev and the new branch are now the same branch dev.
Is there a way to achieve this ?
Thanks to those who will answer.
Edit: The rest of my repo looks like this:
-2------5----7--- master
\ / /
3--4----6----- dev
So when I do as chepner said, I end up with this:
-----2------5----7--------- master
\ / /
---1---3--4----6----------- dev
\
3'-------4'--5'--6' newdev
I want the newdev branch to have the same history of my dev branch with history changes made by the command of chepner.
I hope it's clear enough this time.