I'm working on a project where my team need to work together at the same time modifying files in a folder. These changes have to be synced at real time (ATM I'm using resilio-sync to sync the files). Although this works great, I need a more robust way to do the versioning of these file changes, for this I thought about using GIT. The problem is that when person A commits a change in the repo, person B will have conflicts in his git as resilio-sync already updated his files but the local git needs a pull to be updated causing tons of unwanted conflicts to be fixed every time a commit is made.
How can I overcome this situation?