开发者

Conditional ignore in Git

开发者 https://www.devze.com 2023-02-03 09:06 出处:网络
I\'d like to know of there is a way to configure Git to ignore certain folders condit开发者_如何转开发ionnally.

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

精彩评论

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