Answer the question
In order to leave comments, you need to log in
Git - Ignore folder in repository
Such a situation:
1) We have a repository in which there is a folder with configs;
2) It is necessary to make sure that the files remain in the repository, but are not updated in the local copy;
.gitignore works in this case, but when the folder is ignored, it removes it from the repository.
Maybe not quite clearly explained, nevertheless, I will clarify in the process.
Answer the question
In order to leave comments, you need to log in
Not sure if this is the correct approach. It's usually better to leave the configs in the turnip and create a rule to ignore local configs that override the global ones if set.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question