TFS 2012 .gitignore .hgignore equivalent

不打扰是莪最后的温柔 提交于 2020-01-01 04:26:07

问题


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

This is great news:

  • No 'checking out' files
  • No more read-only files and issues when working with files from programs other than VS.
  • No more 'Get latest' not actually getting latest

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/12635865/tfs-2012-gitignore-hgignore-equivalent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!