Re: Update working copy on push without touching several files
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Oct 20, 2009, 16:45 UTC
- Message-ID
- <200910201846.00650.trast@student.ethz.ch>
- In-Reply-To
- <4ADDCC7A.8080607@amiryan.org>
Alex Amiryan wrote:
Show 6 quoted lines
> Online versions of websites are maintained with git > too. I need to have working copy of my remote git repository (online > version of the site) updated by git push (which I do locally). The > problem is that I have some files there (like database config) that have > to be different from local ones and they must not be updated on git > push.
My best results so far were with special config branches that are auto-merged in post-receive. As a simple example, post-receive might simply be
#!/bin/sh
git checkout -f master^0 git merge config
--
Thomas Rast
trast@{inf,student}.ethz.ch