Rebase all local branches in git

‹ Query a server certificate from the command line | Run neo4j-shell inside docker ›

To rebase all local branches on upstream/master in git:

BASEBRANCH=upstream/master
git for-each-ref --shell --format="git rebase $BASEBRANCH %(refname:short)" refs/heads/ | sh -x

Subscribe to All Posts - Wesley Tanaka