D
D
des1roer2017-06-17 10:09:12
git
des1roer, 2017-06-17 10:09:12

How to create a file under git and then not track it?

I want to create local config files. How can I add it to the project so that others can download the default configs, but my local changes are not written to git?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2017-06-17
@index0h

Examples are usually created for configs, but the configs themselves are ignored.
For example: config.yml is ignored and next to it is config.dist.yml, or config.examle.yml

A
Anton, 2017-06-17
Reytarovsky @Antonchik

.gitignore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question