I follow this answer to not include local content to commit, by using this command:
git update-index --assume-unchanged <filename>
but when someone change it and push to server, i will receive this message when pull from server:
error: Your local changes to the following files would be overwritten by checkout:
<filename>
Please, commit your changes or stash them before you can switch branches.
Is there anyway to not apply change from server to local files?