如何从 VS2008 源代码管理中删除文件夹,同时保持本地文件夹完好无损?
我有一个已同步到团队服务器的工作文件夹。我想知道是否有一种方法可以删除某些子文件夹(即停止同步它们,并使它们对其他人不可见),而不实际在本地驱动器上删除它们?
I have a working folder that's synced to a team server. I was wondering if there is a way to remove some of the subfolders (i.e., stop syncing them, and make them invisible to others), without actually deleting them on the local drive?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为“从项目中排除”(通过右键单击解决方案资源管理器中的文件夹/文件)可能会对您有所帮助。
I think "Exclude from project" (by right clicking the folder/file in solution explorer) is what might help you.
大多数源代码管理提供程序在从源代码管理中删除文件夹时不会删除这些文件夹。也有例外,但我不认为这是标准行为。如果是,您可以执行以下操作来解决该问题:
Most source control providers do not delete the folders when they are removed from source control. There are exceptions but I don't believe this is the standard behavior. If it is though you can do the following to work around the problem