TFS 2012 .gitignore .hgignore 等效 [英] TFS 2012 .gitignore .hgignore equivalent

查看:17
本文介绍了TFS 2012 .gitignore .hgignore 等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 TFS 2012 中,有一种用于本地工作的新模式,本地工作区.

In TFS 2012, there is a new mode for working locally, Local workspace.

这是个好消息:

  • 没有签出"文件
  • 处理来自 VS 以外的程序的文件时不再有只读文件和问题.
  • 不再需要获取最新信息"而不是获取最新信息"

但这也意味着我需要一种方法来告诉 TFS 在监视文件系统的更改时要忽略哪些文件.这在 TFS2012 中是如何处理的?

But it also means I'll need a way to tell TFS what files to ignore when monitoring the file system for changes. How is this handled in TFS2012?

推荐答案

通过在 TFS ui 中乱搞,我自己找到了答案.答案是它由放置在分支根目录中的文件.tfignore"处理.

Found the answer myself, by mucking about in the TFS ui. The answer is that it is handled by the file '.tfignore' placed in the root of your branch.

在待定更改"中,有一条通知说我有未版本化的文件.这导致我进入一个对话框,我可以在其中按文件名、扩展名、文件夹名等忽略内容.在此处添加一些规则在分支根中创建 .tfignore 并使该文件成为待处理的更改.换句话说,这与大多数其他版本控制系统的工作方式完全相同.

In 'Pending changes' there was a notification that I had unversioned files. This led me to a dialog where I could ignore stuff by file name, extension, folder name etc. Adding some rules here created .tfignore in the branch root and made that file a pending change. In other words, this works exactly the same way as most other version control systems.

这篇关于TFS 2012 .gitignore .hgignore 等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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