Skip to content

Instantly share code, notes, and snippets.

View ZaymonFC's full-sized avatar
🧗

Zaymon Antonio ZaymonFC

🧗
View GitHub Profile
@bfollington
bfollington / worktree.sh
Last active November 10, 2025 19:34
Worktree convenience aliases
wt-new() {
branch=$1
git worktree add .worktrees/$branch -b $branch && cd .worktrees/$branch
git config core.hooksPath $(git rev-parse --show-toplevel)/.githooks
}
wt-checkout() {
branch=$1
git worktree add .worktrees/$branch $branch 2>/dev/null || \