I have this situation:
- The main branch is
Develop - I created a new branch from
DevelopcalledTask1 - I made changes in
Task1and made a commit - I made further changes in
Task1and made another commit - It turned out that the task should not be called
Task1(for some reasons). A subtask calledTask2had to be created Task2was created fromTask1branch (inTask2needed changes were made inTask1)- In
Task2, I made further code changes
Now I would like to delete Task1 branch from the history
Changes made in Task1 must remain in Task2
Now is:
Develop - Task1 : (commit1, commit2) - Task2 : (commit1, commit2 etc.)
It should look like this:
Develop - Task2 : (commit1, commit2, commit3 etc.)
EDIT:
Task1 with commits must be removed but changes made remain in Task2