Is there a way in git to prevent a file form being committed?
My use case is i have a config file which resides in master branch in remote location , when locally cloning it i require few local changes which are not to be pushed in master , can there be some configuration in remote or local branch which prevents this file from being be pushed.
This file can be changed through some moderator and i need to have latest copy of it in my local every time i do a git pull.
Which is the best way to go about it?