git cherry-pick says local changes exist, but git status says nothing

后端 未结 6 1516
失恋的感觉
失恋的感觉 2021-02-20 02:17
$ git cherry-pick 5de83068
error: Your local changes to the following files would be overwritten by merge:
        Components/ApplicationEnums/Application.cs
Please, commit yo         


        
6条回答
  •  长情又很酷
    2021-02-20 02:39

    I've had this problem when using git on a virtual machine, where the working copy was a VMware shared folder. I don't really know what the solution is. In my case I was able to get git to move away the changes it thought existed via git stash (upon inspection appeared to be completely empty); after the changes had been moved away I could cherry-pick on top of the now clean working copy. (After this, I just deleted the stash.)

提交回复
热议问题