Skip to content

Worktree based devlopment doesn't create it's own copy of the db #220

Closed

Description

@gn0rt0n

Describe the bug
When I use WorkTrees for development, it copies the same .env file as the main branch. This includes the database settings, etc. Anytime schema changes are made to the database, it affects all WorkTrees and can have a negative effect during simultaneous development.

To Reproduce
Steps to reproduce the behavior:

  1. Create a worktree

Expected behavior
Worktrees get their own environment including resource usage such as databases

Activity

  1. added
    bug
    on Dec 31, 2025
  2. obra commented on Jan 3, 2026

    @obra
    Owner

    This is...just how git worktrees work. You need to tell claude how to handle fresh checkouts for your project in CLAUDE.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions