I have one config file on remote server which I won't be tracked on git repo. Usualy hiding/ignoring files with git is super easy. For this problem we can just use:
Example: Simple and effective :)

More information about git-update-index can be found here https://www.kernel.org/pub/software/scm/git/docs/git-update-index.html