从源代码管理中排除在 Visual Studio 2013 中不起作用? [英] Exclude from Source Control not really working in Visual Studio 2013?

查看:35
本文介绍了从源代码管理中排除在 Visual Studio 2013 中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已通过文件">源代码管理">高级">从源代码管理中排除"选项从 Visual Studio 2013 中的源代码管理中排除了某些文件.我看到我的目标文件旁边弹出一个小图标,上面写着从源代码管理中排除"但是,每次对同一个文件进行编辑时,它仍然显示在等待更改中!

I've excluded certain files from source control in Visual Studio 2013 via the File > Source Control > Advanced > Exclude From Source Control option. I see the little icon pop up next to my target file that says "Excluded from Source Control" However, every time there's an edit to that same file, IT STILL SHOWS UP IN PENDING CHANGES!

为什么?我误解了从版本控制中排除"的意思吗?

Why? Am I misunderstanding the point of "exclude from version control"?

推荐答案

如果您使用的是本地工作区,则应使用 .tfignore 从挂起的更改中删除项目.另一件事是支持服务器工作区.

If you are using local workspaces you should use .tfignore to remove items from the pending changes. The other stuff is to support server workspaces.

http://msdn.microsoft.com/en-us/library/ms245454.aspx

您应该在那里找到文档,但格式与 .gitignore 相同.

You should find the documentation in there but the format is the same as .gitignore.

这篇关于从源代码管理中排除在 Visual Studio 2013 中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆