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

为什么git合并即使在隐藏之后也会中止?,git,merge,Git,Merge,在尝试执行git pull或git fetch/merge时,我收到了消息 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 diff显

在尝试执行git pull或git fetch/merge时,我收到了消息

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 diff显示

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) 隐藏这个“变化”仍然不能让我合并。我可以看到隐藏已创建,并已尝试删除/重新设置,但仍然出现错误

3) 根据,我已尝试强制合并(使用命令)
git签出头^/path/to/file.txt
然后
git pull
)。同样的错误

我想我可以通过删除整个存储库并将其重新克隆来强制它,但我想了解发生了什么。在过去,隐藏变化总能解决这个问题


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

结果是另一个进程锁定了该文件。一旦我终止了流程,合并就如预期的那样进行,没有任何问题