M
M
mindgrow2019-07-15 18:15:53
git
mindgrow, 2019-07-15 18:15:53

Why doesn't git exclude work?

Good afternoon!
There are many branches and configurations in a VS project. When changing the configuration, config files, such as Web.config, may change, but I do not need to load these changes into the repository.
gitignore is not suitable because if I make changes to it, then these changes will be uploaded to the repository and get to other developers, which we don’t need
. I know about the .git\info\exclude file which contains those resources that need to be excluded from the list of changes . I already made exceptions to it and it suited. But! For some reason, the exception does not apply to all the resources that I specify in it. Why can this happen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alternativshik, 2019-07-15
@alternativshik

gitignore is not suitable because if I make changes to it, then these changes will be uploaded to the repository and get to other developers, which we do not need

So there is also a global .gitignore_global, you can add it to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question