How to find out who changed a file?

there will be collaborative editing of files in a shared folder. and the idea is to have a system similar to git — but without requiring contributing users to know about git / or to know how to use it. all the user does is edit and save files, which are then synced to the shared folder. a piece of software monitors that folder, and keeps track of changes (e.g. logs it to a database, creates a git commit, or similar). and for that it would be nice to know who made those changes.