How to synchronize two folder on MacOS

After failure with ln as it is not compatible with git, I finally found a effective way to make a synchronization automatically on MacOS.

How to setup

  1. open your automator

  2. Choose Folder Action

    Screenshot 2023-12-17 at 16.46.37

  3. The upper folder path is the source folder path, and the lower one is the target folder path.

Screenshot 2023-12-17 at 16.48.20

Reference

  1. https://www.bilibili.com/video/BV1ps411J7gW?p=5&vd_source=ba472ccc82e29aa34b862318a41f552b