Last active
September 17, 2023 14:46
-
-
Save hamonangann/09fbf5def2cc33c342c1dd888a6b17b5 to your computer and use it in GitHub Desktop.
Auto-rebase script
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
set -eo pipefail | |
while read line; | |
do | |
# create file auto-rebase.txt | |
# fill each line with branch name | |
# don't forget to end with blank line! | |
IFS=' ' | |
read -a strarr <<< "$line" | |
BRANCH="${strarr[0]}" | |
git checkout $BRANCH | |
git fetch upstream | |
git rebase upstream/master | |
git push --force-with-lease origin $BRANCH | |
done < "auto-rebase.txt" |
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
add-footer | |
add-navbar | |
bugfix-homepage-not-showing | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment