K
K
kirchevsky2013-05-29 10:59:59
git
kirchevsky, 2013-05-29 10:59:59

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

3 answer(s)
K
kuzemchik, 2013-05-29
@kuzemchik

commit and then ignore

@
@sledopit, 2013-05-29
_

gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html

Y
Yuri Shikanov, 2013-05-29
@dizballanze

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 question

Ask a Question

731 491 924 answers to any question