开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜