Thread:Project:Support desk/Move LocalSettings.php/reply

Absolutely:

LocalSettings.php: <?php

require_once('../../SecretStuff.php');

// rest of the setup

And in SecretStuff.php: <?php $wgDBserver="[mysql_host]"; $wgDBname="[mysql_db_name]"; $wgDBuser="[mysql_user]"; $wgDBpassword="[mysql_password]";

As far as the content from LocalSettings.php is not secret, you might want to put that into Git as well; meaning: Put the new LocalSettings.php file into Git, while you keep SecretStuff.php out of it.