In Git, how can I organize work to track local config files of a library, which is a git submodule?
In details:
the library has normal files
When using a submodule, you should avoid making any modification because of the container (here: the project using the lib), because it will create a new revision on the history of the submodule.
It would be possible, for instance, for the lib, to reference config template files that can be the base for :
A "config file template with tokenized values in it, and a script transforming that config.template file into a private (and ignored) config file" is the approach I suggested in this SO question about merge management.
Other more general advices on config files can be found in this SO question.
track your config file in main project directory and put a symlink into library subdirectory?
git add lib.conf
ln -s ../lib.conf lib/
or do I miss something?