Add Git hook and management scripts for automatic worktree creation when branching from main. ## Features **Automatic Worktree Creation:** - Post-checkout Git hook automatically creates worktrees for new branches - Creates worktrees at `../repo-name-branch-name` - Only activates when branching from main/master - Smart detection to avoid duplicate worktrees **Worktree Manager Script:** - `list` - List all worktrees with branches - `create <branch>` - Manually create worktree - `remove <branch>` - Remove worktree - `clean` - Remove all worktrees except main - `goto <branch>` - Get path to worktree (for cd) - `status` - Show git status of all worktrees ## Benefits - Work on multiple branches simultaneously - No need to stash when switching branches - Run dev servers on different branches in parallel - Compare code across branches easily - Keep main branch clean ## Files Added - `.git/hooks/post-checkout` - Auto-creates worktrees on branch creation - `scripts/worktree-manager.sh` - Manual worktree management CLI - `WORKTREE_SETUP.md` - Complete documentation and usage guide ## Usage **Automatic (when branching from main):** ```bash git checkout -b feature/new-feature # Worktree automatically created at ../canvas-website-feature-new-feature ``` **Manual:** ```bash ./scripts/worktree-manager.sh create feature/my-feature ./scripts/worktree-manager.sh list cd $(./scripts/worktree-manager.sh goto feature/my-feature) ``` See WORKTREE_SETUP.md for complete documentation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| .wrangler/tmp | ||
| docs | ||
| scripts | ||
| src | ||
| worker | ||
| .cfignore | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierrc.json | ||
| CLOUDFLARE_PAGES_MIGRATION.md | ||
| CLOUDFLARE_PAGES_SETUP.md | ||
| CLOUDFLARE_WORKER_SETUP.md | ||
| DATA_CONVERSION_GUIDE.md | ||
| DATA_CONVERSION_SUMMARY.md | ||
| DATA_SAFETY_VERIFICATION.md | ||
| DEPLOYMENT_GUIDE.md | ||
| DEPLOYMENT_SUMMARY.md | ||
| FATHOM_INTEGRATION.md | ||
| GESTURES.md | ||
| MIGRATION_CHECKLIST.md | ||
| QUARTZ_SYNC_SETUP.md | ||
| README.md | ||
| SANITIZATION_EXPLANATION.md | ||
| TLDRW_INTERACTIVE_ELEMENTS.md | ||
| TRANSCRIPTION_SETUP.md | ||
| WORKER_ENV_GUIDE.md | ||
| WORKTREE_SETUP.md | ||
| _redirects | ||
| github-integration-setup.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| quartz-sync.env.example | ||
| start-network-dev.sh | ||
| switch-worker-env.sh | ||
| switch-worker.sh | ||
| test-change-detection.js | ||
| test-data-conversion.ts | ||
| test-holon-data.js | ||
| test-r2-conversion.md | ||
| test-video-chat-network.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| tsconfig.worker.json | ||
| vite.config.ts | ||
| wrangler.dev.toml | ||
| wrangler.toml | ||
README.md
A website.
Do npm i and npm run dev