Zend certified PHP/Magento developer

How do I synchronise two folders in real-time in macOS?

im using macOS Catalina, and I want to sync two folders in real-time. One is on my Desktop for me to see and use (auto-sharing between all my os devices via iCloud), and at the same time, the other folder is on my OneDrive (for my team to see).

I want to sync both, so I don’t have to always copy from the OneDrive and paste in my Desktop each time a make a change to the files.