I have a branch A
that was created from another branch B
. Some specific commits from branch B
are also present in branch A
. I’m considering deleting those commits from branch A
, but I’m concerned about whether this will also delete them from branch B
.
A
, will those commits be deleted from branch B
as well?A
fully independent from branch B
so I can remove commits without affecting the original branch?For context:
B
.No, Branch A is derived form Branch B and when you delete them it won't effect the "Parent Branch".
You can use this code git rebase --onto [newParent] [oldParent] [branchToMove]
I hope it helped you.