Skip to content

Commit

Permalink
add rebase script
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyever committed Nov 2, 2022
1 parent e763b7a commit 05f400c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rebase.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set -eu
git branch -D cyy || true
git push -d origin cyy || true

# branches="build_system_fix fix_pybind fix_leak miscellaneous_fixes ubsan fix_performance msvc_ssize use_dynamic_cast move make_unique dropout_seed cxx20 reference detailed_error"
branches="build_system_fix fix_pybind fix_leak miscellaneous_fixes ubsan fix_performance msvc_ssize use_dynamic_cast move dropout_seed cxx20 detailed_error"
for branch in $branches; do
echo "rebase ${branch}"
git checkout ${branch}
git rebase up/master
git push --force
echo "end rebase ${branch}"
done
git checkout -b cyy
for branch in $branches; do
echo "rebase ${branch}"
git rebase ${branch}
echo "end rebase ${branch}"
done
git push --set-upstream origin cyy

0 comments on commit 05f400c

Please sign in to comment.