Created
July 15, 2021 09:17
-
-
Save theluk/ace14cf57af7c692bd697c66b29ee0c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap "exit 1" ERR | |
isPush=false | |
if [[ "$1" == "--push" ]] | |
then | |
isPush=true | |
shift | |
else | |
isPush=false | |
fi | |
while [ $# -gt 1 ]; do | |
git checkout $2 | |
git merge $1 | |
[ "$isPush" = "true" ] && git push | |
shift | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you have already some PRs waiting for review and they build all on top of each other, this utility comes in handy.
this will do