I'm working with a platform that creates a configuration.php file as part of the instillation process. Right now, the installation process is run as part of the build hook on the server. The problem is that because its being created on the server, after every push, it has to rerun the instillation process. This overwrites a lot of the changes.
Is there a way to run git add and git commit on the server? If I can add the configuration.php file to the repo and git pull it down, then the instillation process won't continue to run. If so, what directory should I run the commands in?
I've tried SSHing onto the server and running the git commands, but only receive the error fatal: Not a git repository (or any parent up to mount point /var/lib/openshift) no matter what directory I try.