On Feb 24, 1:00 am, drewB <dbats...@gmail.com> wrote:
> I work with a small team of developers and there is one file
> (db.config) under version control that I need to be different than the
> other team members.  Unfortunately, the powers that be have determined
> that we can't take the file out of version control for deployment
> reasons (so the usual git ignore won't work). So, I am left with a
> single file that is always out of sync.
> The best solution I could come up with is to write a shell script for
> running git commands.  The script makes a copy of my db.config and
> then overwrites it with a version that matches what is in the remote
> repo.  Next, the git command is run and finally my version is copied
> back.  This does that job but seems very clunky.
> Is there some other way to accomplish this more elegantly?

I have similar problem with a file include/config.php, that is
different for each users.

What i have done is rename the file to config-sample.php, now when i
package software for deployment, i run a shell script, that rename
config-sample.php to config.php

Would like to know if there any better solution available for this

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to