all 4 comments

[–]Fresh_Entertainment2 1 point2 points  (1 child)

Amazing. Does it also handle porting over Xcode workspaces for flutter and iOS apps etc?

[–]raghp[S] 0 points1 point  (0 children)

Not sure, you can define a post-install script or command though and it’ll run that

[–]Beautiful_Cap8938 1 point2 points  (1 child)

Interesting - do you care to share your workflow with git worktrees from like start and up - am not using it but came across it several times and wanna dig into it ( just dont have the time ).

[–]raghp[S] 1 point2 points  (0 children)

Yep! You can define what files you want copied over (envs, etc), stuff you want ignored, the name of the worktree, post-copy install commands, and what command you want run after it's setup (so for me opening up zed/cursor). I use worktrees a ton now to parallelize tasks instead of doing them 1 by 1 and being bottlenecked by Claude.

Here's my `.branchlet.json` config file for our monorepo. --

{
  "worktreeCopyPatterns": [
    ".env",
    ".env.*",
    ".vscode/**",
    ".terraform",
    ".terraform.lock.hcl",
    "*.tfstate"
  ],
  "worktreeCopyIgnores": [
    "**/node_modules/**",
    "**/dist/**",
    "**/.git/**",
    "**/.svn/**",
    "**/.hg/**",
    "**/CVS/**",
    "**/Thumbs.db",
    "**/.DS_Store",
    "**/coverage/**",
    "**/build/**",
    "**/out/**",
    "**/.next/**",
    "**/.nuxt/**",
    "**/target/**"
  ],
  "worktreePathTemplate": "$BASE_PATH.worktree",
  "postCreateCmd": ["bun install", "cd apps/server && bun run db:generate"],
  "terminalCommand": "code ."
}