git update-index --assume-unchanged返回错误 [英] git update-index --assume-unchanged returns error

查看:168
本文介绍了git update-index --assume-unchanged返回错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git update-index --assume-unchanged > 返回致命:无法标记文件< filename>



我需要做些什么来解决这个问题?什么是抱怨和为什么?

它被添加到存储库中,而不是 .git / info / exclude 而不是 .gitignore ?



如果答案是肯定的这些文件不在存储库中,这就是错误的原因。



尝试 git ls-files -o 并查看文件是否在那里。它不应该是。


git update-index --assume-unchanged <filename> returns fatal: Unable to mark file <filename>.

What do I need to do to fix this? What is it complaining about and why?

解决方案

Is it added to the repository, not in .git/info/exclude and not on .gitignore?

If the answer is yes to either of those, then the file is not in the repository and this is the reason for the error.

Try git ls-files -o and see if the file is there. It should not be.

这篇关于git update-index --assume-unchanged返回错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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