Sync files between two different folders on a single Mac

If the git solution does not work for you Linux has you covered.

For folder syncing use rsync -avP —delete —exclude=‘excludeDir’ /path/source /path/dest or mirror And for automatic operation use the scheduler crontab


Since the files are under Git version control, you can simply add the second folder as a remote repository.

Once done, you can sync the files between the two by performing Git Pull and Push operations.

However, the only drawback is that the sync will have to be performed manually.