为什么 git 即使在隐藏之后合并也会中止?

Why does git merge abort even after stashing?

在尝试执行 git 拉取或 git 提取/合并时,我收到消息

error: Your local changes to the following files would be overwritten by merge: 
/path/to/file.txt 

Please, commit your changes or stash them before you can merge. 

这有几件奇怪的事情:1) 我没有(有意)对有问题的文件进行任何更改。 git 差异显示

warning: LF will be replaced by CRLF in /path/to/file.txt. 
The file will have its original line endings in your working directory. 

我猜这是自动发生的,但令我惊讶的是 git 将其视为一个表演障碍。

2) 隐藏这个 "change" 仍然不会让我合并。我可以看到存储已创建,并且已尝试 dropping/restashing,但我仍然收到错误。

3) 根据 this so question/answer,我尝试强制合并(使用命令 git checkout HEAD^ /path/to/file.txt 然后 git pull)。同样的错误。

我想我可以通过整个删除存储库并重新克隆它来暴力破解它,但我想了解发生了什么。过去,隐藏更改总是可以解决这个问题。

这似乎与题材无关,但为了提供所有信息,我最近从 git bash 1.9.4 升级到 1.9.5 (Windows) 并升级了我的 openssl 版本。

事实证明另一个进程锁定了该文件。一旦我终止了这个过程,合并就会按预期进行,没有任何问题。