I have been looking for a solution through which It's possible to merge one branch into multiple other branches with single git command, but couldn't find an answer.
Why I want to do it and What I want to do it?
Is: I have a single Base branch that contains all base code and that will be merged into multiple other branches as:
base branch:
main-code
other branches:
website-clone-1, website-clone-2, website-clone-3 ...
So actually, I have multiple websites configured with a single repository but on different branches. So normally, If there is a change that needs to be replicated on all other websites, I will do it firstly on the main-code branch and then would need to check out each of the website branches and then merge theirs.
So to overcome this repetitive process I'm looking for a solution through which it would be easier for me to merge changes into all other branches with a single line of command instead of doing it on all branches one by one.
Any kind of help will be appreciated. Cheers!