From: Mike Frysinger Date: Sun, 7 Jan 2018 21:36:01 +0000 (-0500) Subject: git-rb-all: helper for rebasing all branches X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ba2e5f1f9dc0567d3df1abfbe6c3ae268ed7bc08;p=home.git git-rb-all: helper for rebasing all branches --- diff --git a/.bin/git-rb-all b/.bin/git-rb-all new file mode 100755 index 0000000..839d143 --- /dev/null +++ b/.bin/git-rb-all @@ -0,0 +1,36 @@ +#!/bin/bash +# Helper to rewrite all local branches. + +rb_one() { + local b=$1 + + echo "### ${b}" + git checkout -q "${b}" || exit + if ! git rebase ; then + git rebase --abort + fi +} + +usage() { + cat <