Migrated from GitHub
Go to file
Jeff Emmett 08c8cc8d23 feat: add automatic Git worktree creation
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>
2025-11-19 20:55:30 -07:00
.github/workflows switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
.wrangler/tmp multiboard 2024-08-30 12:31:52 +02:00
docs refactor: remove OddJS dependency and fix Automerge sync 2025-11-16 20:19:02 -07:00
scripts feat: add automatic Git worktree creation 2025-11-19 20:55:30 -07:00
src debug: add logging for coordinate defaults during sanitization 2025-11-19 20:25:24 -07:00
worker fix: implement real-time Automerge sync across clients 2025-11-16 19:45:36 -07:00
.cfignore fix: move wrangler.dev.toml to worker/ directory to fix Pages deployment 2025-11-16 18:43:34 -07:00
.env.example Revert "Update Daily API key in production env" 2025-04-16 13:05:55 -07:00
.gitattributes oriomimicry 2024-08-09 23:14:58 -04:00
.gitignore working video calls 2025-02-13 20:38:01 +01:00
.npmrc npm 2024-12-07 22:48:02 -05:00
.nvmrc fix: preserve coordinates and convert geo shape text during JSON import 2025-11-19 16:14:23 -07:00
.prettierrc.json prettify and cleanup 2024-12-07 22:01:02 -05:00
CLOUDFLARE_PAGES_MIGRATION.md update package.json, remove cloudflare worker deployment 2025-11-10 12:46:49 -08:00
CLOUDFLARE_PAGES_SETUP.md latest update to fix cloudflare 2025-11-10 11:51:57 -08:00
CLOUDFLARE_WORKER_SETUP.md switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
DATA_CONVERSION_GUIDE.md pin object, fix fathom, and a bunch of other things 2025-11-11 22:32:36 -08:00
DATA_CONVERSION_SUMMARY.md everything working in dev 2025-11-10 11:06:13 -08:00
DATA_SAFETY_VERIFICATION.md updates to worker 2025-11-10 13:50:31 -08:00
DEPLOYMENT_GUIDE.md switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
DEPLOYMENT_SUMMARY.md switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
FATHOM_INTEGRATION.md final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
GESTURES.md add in gestures and ctrl+space command tool (TBD add global LLM) 2025-07-29 16:02:51 -04:00
MIGRATION_CHECKLIST.md update package.json, remove cloudflare worker deployment 2025-11-10 12:46:49 -08:00
QUARTZ_SYNC_SETUP.md automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
README.md Revert "update website main page and repo readme, add scroll bar to markdown tool" 2025-04-16 13:05:50 -07:00
SANITIZATION_EXPLANATION.md everything working in dev 2025-11-10 11:06:13 -08:00
TLDRW_INTERACTIVE_ELEMENTS.md automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
TRANSCRIPTION_SETUP.md everything working in dev 2025-11-10 11:06:13 -08:00
WORKER_ENV_GUIDE.md final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
WORKTREE_SETUP.md feat: add automatic Git worktree creation 2025-11-19 20:55:30 -07:00
_redirects update package.json, remove cloudflare worker deployment 2025-11-10 12:46:49 -08:00
github-integration-setup.md automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
index.html fixed shared piano 2025-09-04 17:54:39 +02:00
package-lock.json refactor: remove OddJS dependency and fix Automerge sync 2025-11-16 20:19:02 -07:00
package.json fix: preserve coordinates and convert geo shape text during JSON import 2025-11-19 16:14:23 -07:00
quartz-sync.env.example automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
start-network-dev.sh automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
switch-worker-env.sh final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
switch-worker.sh automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
test-change-detection.js automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
test-data-conversion.ts everything working in dev 2025-11-10 11:06:13 -08:00
test-holon-data.js everything working in dev 2025-11-10 11:06:13 -08:00
test-r2-conversion.md everything working in dev 2025-11-10 11:06:13 -08:00
test-video-chat-network.js automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
tsconfig.json fix stuff 2024-08-31 15:00:06 +02:00
tsconfig.node.json oriomimicry 2024-08-09 23:14:58 -04:00
tsconfig.worker.json multiplayer 2024-08-29 21:15:13 +02:00
vite.config.ts everything working in dev 2025-11-10 11:06:13 -08:00
wrangler.dev.toml refactor: move wrangler config files to root directory 2025-11-16 19:17:54 -07:00
wrangler.toml refactor: move wrangler config files to root directory 2025-11-16 19:17:54 -07:00

README.md

A website.

Do npm i and npm run dev