See the section in this repo on XDebug
Sync-Rsync from @thisboyiscrazy
https://github.com/thisboyiscrazy/vscode-rsync
My guidelines for operational success using rsync in VSCode.
[project-name]/[domain]-rsync naming convention
.git/ and commit to doing git commits on the original source