'Sync ignored files between git worktrees

I'm trying to start working with git work trees instead of branches. But when I create new corktree I have to manually move some files from main branch to new created folder. For example, .vscode/settings.json. So is it possible to sync files between work trees that should be ignored in git?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source