I have a change which has been committed and pushed to the remote of dev-branch
and now I want to push this change also to the mainline
.
The approach I could think of is that duplicate the changes in the local and then commit/push to the mainline
, but this looks like would make a single change becomes irrelevant commits across dev-branch
and mainline
?
So what is the correct way to achieve this? Thank you.