From ba2e5f1f9dc0567d3df1abfbe6c3ae268ed7bc08 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 7 Jan 2018 16:36:01 -0500 Subject: [PATCH] git-rb-all: helper for rebasing all branches --- .bin/git-rb-all | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 .bin/git-rb-all 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 <