Skip to content

Instantly share code, notes, and snippets.

View lorenzleutgeb's full-sized avatar

Lorenz Leutgeb lorenzleutgeb

View GitHub Profile
@lorenzleutgeb
lorenzleutgeb / rad-worktree.sh
Last active May 7, 2024 19:32
rad-worktree
#! /bin/sh
set -eu
jq -V >/dev/null
if [ $# -lt 1 ]
then
printf 'Usage: %s rad:… [name-of-worktree]\n' "$0"
printf 'The worktree will be created in a new directory within the current working directory.'
exit 1