Files
dotfiles/bin/git-worktree-rm
2019-12-18 10:04:48 +01:00

9 lines
111 B
Bash
Executable File

#!/usr/bin/env bash
set -o nounset
rm -r "${1}"
cd ./.gitdir
git worktree remove "${1}"
git branch -D "${1}"