Inside my application I do have a server.inc file which contains a switch statement $server=1
that specifies the server the app is installed in.
Now everytime I git push to staging or production that file also gets transfered and I have manually to update the variable on the entire cluster.
I know I could simply exclude this file from git, but then I would not have it under version control.
How could I overcome this problem? Is there a way to exclude a secific file from the hook or something similar?
Thank you in advance for any help on this.