From 336359e038fa07a516881fbaa47003dd1bf4dca2 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 20 Apr 2015 20:53:58 +0200 Subject: [PATCH] Added a script rebasing all actives branches - Added a script rebasing and pushing every active branch, be sure to delete (git branch -D ) any useless branch before using it! --- other_things/scripts/rebase_active_branches.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 other_things/scripts/rebase_active_branches.sh diff --git a/other_things/scripts/rebase_active_branches.sh b/other_things/scripts/rebase_active_branches.sh new file mode 100755 index 00000000..cc9b97b0 --- /dev/null +++ b/other_things/scripts/rebase_active_branches.sh @@ -0,0 +1,15 @@ +# Rebase actives branches +# Script by LeMagnesium (20/12/15) +# @param : Branches to rebase from master +# Must be ran from the root of the repo or a subdirectory + +for branch in $( git branch ); do + if [ branch != "master" ]; + then + git checkout $branch + git rebase master + git push -f origin $branch + fi +done + +git checkout master