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

后端 未结 6 1440
失恋的感觉
失恋的感觉 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:27

    I had this issue. Error was - error: Your local changes would be overwritten by cherry-pick. hint: Commit your changes or stash them to proceed. fatal: cherry-pick failed The reason for me was I had a file in staging area that I don't wants to commit. I moved that file from staging area and tried to chery-pick again and that was a success.

提交回复
热议问题