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?
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