在某些情况下,您可能希望排除项目中的某些资源,使其不被发布到云端。Collaborate 使用 gitignore 文件(名为 _.collabignore_)来排除文件。
向 .collabignore 文件添加排除规则的步骤如下:
1.在项目文件的根目录中找到 .collabignore 文件。如果没有看到此文件,请参阅以下说明以显示隐藏的文件。 2.参考 GitIgnore 文档编辑 .collabignore 文件并添加新规则。可以在任何文本编辑器中编辑该文件。 4.在 Collaborate 中发布您的 .collabignore 文件更改,以便与团队的其他成员共享您的排除规则。
如果看不到 .collabignore 文件或要排除的资源文件,可能的原因是系统已配置为隐藏系统文件。默认情况下,Windows 和 Mac 会隐藏系统文件。
在 Windows 10 和更高版本中显示隐藏的文件的步骤如下:
1.从任务栏中打开文件资源管理器。 2. Select View > Options > Change folder and search options. 3.选择查看选项卡,然后找到高级设置。 4.选中显示隐藏的文件、文件和驱动器,然后选择确定。
有关详细信息,请参阅 Windows 支持。
在 MacOS 中显示隐藏的文件的步骤如下:
1.导航到项目的根目录。
2. Display the files as a list
3.按 Shift+Command+句点键使系统文件在隐藏和可见状态之间切换。
有关详细信息,请参阅 Macintosh 支持
有些项目文件和文件夹永远无法通过 .collabignore 文件从 Collaborate 中排除。它们如下:
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.