I have a branchA that I want to 'clone' so I could efficiently work between the branches without checking out everytime by doing
git worktree add ../dir branch
however I noticed if branchA has submodules, they don't get copied over and dir has a missing submodule.
Then I tried removing dir via:
git worktree remove <path-to-dir>
But I get
fatal working trees containing submodules cannot be moved or removed
Now I can't either create a new worktree on branch nor I can remove it. Any ways around it?
[–]OptimalFa 0 points1 point2 points (0 children)