Git stash: “Cannot apply to a dirty working tree, please stage your changes”

后端 未结 11 1677
青春惊慌失措
青春惊慌失措 2020-12-12 09:04

I am trying to apply changes I stashed earlier with git stash pop and get the message:

Cannot apply to a dirty working tree, please stage your c         


        
11条回答
  •  旧时难觅i
    2020-12-12 09:06

    I had the same problem but git had zero changed files. Turns out I had a index.lock file that was lying around. Deleting it solved the problem.

提交回复
热议问题