Why not use setup a gitattributes filter driver ?

Each time you check your directory, it checks with a script in the smudge step) for this file (and only this file) if a certain condition is fulfilled (for example, "this or not your development" station ") and accordingly change the content.
The clean step would restore its contents, or at least ignore this particular modification.
Vonc
source share