At any given moment, we have a master and develop branch and any number of open hotfixes, feature branches, etc.
I'm wondering, short of a shell script, if there is a method to merge a single commit into all of the branches?
Our testing infrastructure allows us to test different branches before merging them into develop and master. But occasionally, we have infrastructure changes that will require universal code changes on all the branches. Right now, we just go into each branch and cherry pick the change into every branch one by one.
Is there a better way to do this? And an extension of this question would be, is there also a way to just force overwrite the entirety of a file on every branch? Because even if done with a script, some branches are likely to have conflicts that will have to be resolved and others will make undesirable automatic merges. But in this case, we would want the entirety of the newly updated file to overwrite every copy at the top of every open branch.