E
E
EvgMul2020-02-20 19:13:15
git
EvgMul, 2020-02-20 19:13:15

How to add configuration files to git?

Hello. The question is the following. I have a file with an array of configurations. I want to add a list of keys there that can be configured, and the values ​​will be substituted individually for each site.
I need to add a file to git with keys but no values, commit, and then make sure that this file is no longer tracked.
Can you please tell me what sequence of commands will allow me to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-02-20
@inoise

make a separate file. For example, for a .config file, make .config.default . In general, you can just make a configurator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question