#!/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 <