I'm collaborating with a colleague through Git. There are some files which he normally shouldn't modify, but it can happen by accident. Moreover, he is not experienced with Git.
What is the best way to make a setting in his Git such that
- on git push he will never overwrite files on the server in my special directory
- on git pull (or a similar command) he will always overwrite that directory with the version from the server (even if he changed the files in this directory locally)