When you have multiple branches need to rebase with same a branch. You need to switch to each branch and rebase it. This script help you to automate switch and rebase with each branch with main branch (auto get or you can passing it into first argument)
./git-bulk-rebase.sh <main branch>