windows - 无法撤消 Git 中的文件
问题描述
我有一个奇怪的情况,在某些提交之后,文件在 Git 中被修改,我无法撤消它。
我们正在使用 LFS,该文件是二进制文件。LFS 安装在我的机器上,并针对存储库进行了配置。
请注意:
C:\xyz\tip [master ≡ +0 ~1 -0 !]> git st
## master...origin/master
M Dependencies/BSI/Debug/64/TFC80NET.dll
C:\xyz\tip [master ≡ +0 ~1 -0 !]> git reset --hard HEAD
Encountered 1 file(s) that should have been pointers, but weren't:
Dependencies/BSI/Debug/64/TFC80NET.dll
HEAD is now at 9ffa900f53 Merged PR 7525: Adding relationship conditions only do not enable Save button
C:\xyz\tip [master ≡ +0 ~1 -0 !]> git co HEAD -- Dependencies/BSI/Debug/64/TFC80NET.dll
Encountered 1 file(s) that should have been pointers, but weren't:
Dependencies/BSI/Debug/64/TFC80NET.dll
C:\xyz\tip [master ≡ +0 ~1 -0 !]>
到底是怎么回事?如何解决它?
解决方案
推荐阅读
- javascript - 使用 javascript 运行客户端 powershell 脚本
- python - 如何在 Python 中应用形态学运算来填充内部有孔的二元轮廓?
- python - Python asyncio:RuntimeError 在当前事件循环以外的事件循环上调用的非线程安全操作
- javascript - 如何使用具有两个值的 find()
- reverse-engineering - AARCH64/ARMv8 上没有堆栈溢出漏洞?
- c# - 使用 HttpClient POST 请求上传文件返回 200,但文件未上传
- google-bigquery - 通过 BigQuery 连接
- azure-devops - 来自单个 azure 管道 yaml 的多个 (github) PR 检查
- c++ - 加快 C++ 代码性能(map、find()、输入和输出)
- php - 如何在奏鸣曲管理员中启用特定实体的删除和编辑