I have a repo, used by developers working on my project. In this repo, there is a file ".your_local_variable.php", where there are paths that have to be filled by the developer, relative to their machines, before starting working on the project. I want the developers to pull the "template" of this file only once when they first clone the repo on their machines, but I want to prevent them to send this file on a merge request.
I tried to put it in the .gitignore, and push .gitignore remotely, so they can retrieve it, but the file ".your_local_variable.php" is still showing up on command "git status" as "changes not staged for commit".
Is there any way to prevent pushing this file, and to hide it from git status, while keeping a "template version" of this file on the remote repo?