when i have 3 linux servers and all have /scripts directory with various scripts. I would like to be able to edit script files on any of the server and when file is changed, it is synced automatically to rest 2 servers

i mean i dont need to care about executing any rsync commands, it would be watching that directory automatically.. Is there any tutorial on this please?