私が正しく理解していることを確認するために、最初にあなたの問題をもう一度述べたいと思います。
インストールを実行するか、存在する場合は更新する必要があるサーバーがあります。github にインストール ファイルがあります。
新規インストールの場合は、github から複製してから、/www/inc/config.inc.php ファイルと /www/images フォルダーを変更します。
更新を実行するとき、それらの更新を github にプッシュし、それらの更新を github からさまざまなサーバーにプルしたいが、ローカルの変更をマージしたり上書きしたりしたくありません。
シナリオが間違っている場合はコメントしてください。
上記が正しいと仮定すると、これを達成するためのアプローチは次のとおりです。
リポジトリをローカル サーバーに最初に複製するときは、ローカルに変更を加える前にブランチを作成します。作成したブランチに常にローカル リポジトリを保持します。
#clone the repo
git clone git://github.com/you/yourproject.git
#create and checkout a local working branch
git checkout -b workingBranch
#make your changes to configs and other directories freely
...
#when you're done, add and commit those changes
git add .
git commit
ローカル マシンにプルしたい更新がある場合
#checkout the master branch
git checkout master
#pull to get the latest code
git pull origin master
#checkout the workingBranch again
git checkout workingBranch
#rebase to get the new changes on that branch
git rebase master
これにより、ブランチで行った変更が一時的にロールバックされ、マスター ブランチから最新のコミットが取得され、新しい変更の上にコミットが「再生」されます。