Skip to content

feat: symlink .env file into worktrees#60

Merged
javoire merged 1 commit intomainfrom
symlink-env-worktree
Feb 3, 2026
Merged

feat: symlink .env file into worktrees#60
javoire merged 1 commit intomainfrom
symlink-env-worktree

Conversation

@javoire
Copy link
Copy Markdown
Owner

@javoire javoire commented Feb 2, 2026

Summary

  • Automatically symlink .env from repo root into new worktrees
  • Only logs success message if symlink was created
  • Handles dry-run mode appropriately

🤖 Generated with Claude Code

When creating a worktree, automatically symlink the .env file from the
repo root if it exists. This ensures environment configuration is
shared across worktrees without duplication.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@javoire javoire force-pushed the symlink-env-worktree branch from f29dde6 to 59f0340 Compare February 2, 2026 21:15
@javoire javoire enabled auto-merge (squash) February 2, 2026 21:16
@javoire javoire merged commit bd64571 into main Feb 3, 2026
1 of 3 checks passed
@javoire javoire deleted the symlink-env-worktree branch February 3, 2026 14:45
javoire pushed a commit that referenced this pull request Feb 3, 2026
…026-02-03)

### Features

* improve error message when branch already checked out in worktree ([#59](#59)) ([72e6887](72e6887))
* symlink .env file into worktrees ([#60](#60)) ([bd64571](bd64571))
@javoire
Copy link
Copy Markdown
Owner Author

javoire commented Feb 3, 2026

🎉 This PR is included in version 1.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant