在.tfignore中被排除但仍在报告未决变化 [英] Excluded in .tfignore Yet Still Reported on Pending Changes

查看:244
本文介绍了在.tfignore中被排除但仍在报告未决变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.tfignore文件中列出的文件和文件夹仍在Pending Changes上报告。它们也被排除在解决方案的项目之外。当我对它们进行更改时,如何使它们永久不显示在Pending Changes上?我确定
VS和TFS的版本无关紧要,但它们都是2017年。

解决方案

Dean Dean Hammond ,


请执行 git rm --cached {ignore file type}


例如:   git rm --cached * .css


然后提交您的更改:
git commit 


之后,.tfignore中忽略的文件将不会列在更改中。


最好的问候


Files and folders listed in the .tfignore file are still being reported on Pending Changes. They are also excluded from the project in the solution as well. How can I make them permanent not show up on Pending Changes when I make changes on them? I'm sure the versions of VS and TFS won't matter much, but they're both 2017.

解决方案

Hi Dean Hammond,

Please execute git rm --cached {ignore file type}

For example:  git rm --cached *.css

Then commit your changes: git commit  

After that, the files ignored in .tfignore will not list in the Changes.

Best Regards


这篇关于在.tfignore中被排除但仍在报告未决变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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