Commit 016521cb authored by nimrod's avatar nimrod
Browse files

git-prunetree

Git script to remove temp work tress and prune work trees.
parent e282309c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
#!/bin/sh
set -eu

git worktree list | awk '$1 ~ /^\/tmp\// {print $1}' | xargs -rn1 git worktree remove --force
git worktree prune