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
git checkout -b $1 | |
git add src/ | |
git commit -m "$1" | |
git fetch upstream | |
git rebase -s resolve upstream/master | |
git push --force origin $(git rev-parse --abbrev-ref HEAD) | |
git checkout master |
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
git checkout $1 | |
git fetch upstream | |
git rebase -s resolve upstream/master | |
git push --force-with-lease origin $1 | |
git checkout master |
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]}" |