Conditional ignore in Git
I'd like to know of there is a way to configure Git to ignore certain folders condit开发者_如何转开发ionnally. I am thinking for example to check if a directory has a file called '.exclude' or something that would get the directory exlude from Git commits.
Thanks.
Just put a .gitignore
file with a *
entry in the folder you want to ignore. They can be anywhere in the repository, not just the top level.
精彩评论