Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions template/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ wt-add branch base='main':
git worktree add -b "$BRANCH" "$BRANCH" "$BASE"
echo "Created new branch '$BRANCH' from '$BASE'"
fi
# Symlink .env from project root into the worktree if available
if [ -f .env ] && [ ! -e "$BRANCH/.env" ]; then
ln -s "$(pwd)/.env" "$BRANCH/.env"
echo "Linked .env into worktree"
fi

echo " cd $BRANCH/"

# Remove a git worktree and its local branch (accepts branch name or folder path)
Expand Down