I have a git repo which has multiple releases branches.
What I want to do is create a script that will list all release branches that match a pattern, check out each of these branches in turn and run a git merge from master and push it back to remote.
Is there anyway to do that without me typing the branch name manually?