So @phpstorm can handle worktrees…
At least when you only have one git-repo in your project…
Good. I now have removed the other three git-repos from the project (sucks because - microservices os so but hey! If that’s your requirement I’ll try it!)
Turns out: One of those removed git repos had subrepos…
The main repo is gone from the Worktrees view. The 2 subrepos are still there… And there seems to be no way to remove them…
Is that something for a bug-report? Or is it just me?
@phpstorm It’s me. And also my #edgecases
When you create a worktree inside a container and didn’T set
git config worktree.useRelativePaths truethen thegitdiffile in the.git/worktreefolder and the.gitfile in your visible worktree will link to each other in absolute paths - based on the containers filesystem…Outside the container PHPStorm can then not find those files and 💥
Thanks for the learning opportunity! 🙈
Oh and the submodules were stuck in
.idea/vcs.xml…@phpstorm And then I have to open the worktree as a new Project in a separate window? I can’t attach it to the current project?
🤯
And even opening it in the same window will create a totally separate .idea folder and all my settings from before are … gone…
Whoever thought that’s a good UX might want to reconsider that decision…
@heiglandreas @phpstorm And everything you’re describing is in 2026.3? I’ve read that they made some updates to how PHPStorm handles worktrees, but I had assumed that everything you described would work now.


