Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question