#!/bin/sh # List branches that are checked out with worktrees git worktree list --porcelain | sed -ne 's!^branch refs\/heads/!!p'