4 proj=$(basename $(dirname $(pwd)))
7 for branch in $(git remote prune "$1" | grep -o "$1/.*$"); do
9 echo "Cleaning up $branch"
10 git worktree remove --force "$branch"
11 git branch -D "$branch"
17 checkout) git worktree add ../$2 ;;
18 add) git worktree add ../$2 -b $2 main ;;
20 *) echo "Unknown command $1" >&2; exit 1 ;;