I'm using git worktree to work with my branches.
For example:
git worktree add -b Foo ../Foo origin/master
It creates a new folder, new branch, and new worktree, as expected. However, there is no node_modules/ in the new folder.
My .gitignore contains node_modules.
Is it nice way to create a complete folder?
I can create a perfect folder using a shell script (like cp xxx xxx), but I want to create perfect folder using git worktree.