N
N
Northern Lights2019-08-13 17:32:48
git
Northern Lights, 2019-08-13 17:32:48

How to upload to the repository what is in .gitignore?

The configuration file config.ini is listed in .gitignore. He doesn't need to be pushed, he doesn't need to be pulled. But it must be present in the Gita in its original form, i.e. as a pig with empty values. How to achieve this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-08-13
@php666

To do this, they usually use the creation of a config.ini.example file, for example, and installation instructions. Depending on the language, you can do it differently.

S
Smyek, 2019-08-15
@Smyek

Ivan Shumov suggested a normal option, but I usually do something more automated, but similar, for example:
Depending on the need, you can display warnings, but in my opinion everything should work right away.
If the config grows, it is worth checking the current config for the absence of fields that are in the default. With manual installation instructions, this, you see, will not be so fun.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question