You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,32 @@ yarn e2e:run
115
115
yarn e2e:open
116
116
```
117
117
118
+
## Git Worktrees
119
+
120
+
The project includes scripts to manage [Git worktrees](https://git-scm.com/docs/git-worktree), allowing you to work on multiple branches simultaneously in separate directories without stashing or switching branches.
121
+
122
+
### Create a new worktree
123
+
124
+
```
125
+
yarn new-worktree feat/my-feature
126
+
```
127
+
128
+
This will:
129
+
1. Create a new branch (`feat/my-feature`) and check it out in a sibling directory named `wt-feat-my-feature`
130
+
2. Copy `.vscode` settings and all `.env*` files from the main repo
131
+
3. Hard-link `node_modules` from the main repo (fast, minimal extra disk usage) — or run `yarn install` if none exist
132
+
4. Open the new worktree in a new VS Code window
133
+
134
+
> If the new branch changes `package.json` dependencies, run `yarn install` inside the worktree directory to reconcile.
135
+
136
+
### Remove a worktree
137
+
138
+
```
139
+
yarn remove-worktree feat/my-feature
140
+
```
141
+
142
+
This will remove the worktree directory and delete the local branch. The branch must be fully merged before deletion (uses `git branch -d`).
143
+
118
144
## API Types Generation
119
145
120
146
The project includes scripts for generating TypeScript types from OpenAPI specifications:
0 commit comments