Let's say my remote project has a file, database.php
, with database connection info as an array.
I want to include the file in my repo, but redact its contents. You could say I want the physical file (the shell) to be in the repo but not the content.
The idea then would be that developers who clone my repo (to work on it via localhost) fill in their own, localhost DB credentials and don't see my server DB credentials.
Is there any way Git supports this sort of thing, or is my thinking way off?
Right now the only thing I've come up with is to keep the sensitive file out of the repo, and tell my developers to make their own one for local use, and never git add
it.