Skip to content
Snippets Groups Projects
Commit 60c3ddc8 authored by nimrod's avatar nimrod
Browse files

git-prunetree

Git script to remove temp work tress and prune work trees.
parent cc09378c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -eu
git worktree list | awk '$1 ~ /^\/tmp\// {print $1}' | xargs -rn1 git worktree remove --force
git worktree prune
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment