I have this situation:
- The main branch is
Develop
- I created a new branch from
Develop
calledTask1
- I made changes in
Task1
and made a commit - I made further changes in
Task1
and made another commit - It turned out that the task should not be called
Task1
(for some reasons). A subtask calledTask2
had to be created Task2
was created fromTask1
branch (inTask2
needed 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