I have a project managed with git with multiple active branches.
e.g. feature1, feature2, feature3,..., master
I was working feature1
: I have created files, made modifications, committed and pushed my changes to remote feature1
.
Now I have realized one of the modifications (edited file x.x
) on this branch would be very useful on feature2
as well.
However, if I checkout feature2
x.x
is not there so I can not commit it in this branch.
What is the clean way to get x.x
on feature2
, without having to merge feature1
into feature2
?