I have a bunch of commits:
T-1: commit-50
...
T-1: commit-1
Now I need to merge them under a new task. Is there a way to automatize turning them into
T-2: commit-50
...
T-2: commit-1
?
I have a bunch of commits:
T-1: commit-50
...
T-1: commit-1
Now I need to merge them under a new task. Is there a way to automatize turning them into
T-2: commit-50
...
T-2: commit-1
?
Suppose T1's commit-1 is A
and commit-50 is Z
.
Generate patches from A to Z.
git format-patch A^..Z
Apply the patches on the new task's branch.
git am /path/to/*.patch
There could be conflicts. If any, resolve the conflicts and apply the rest.