Git stash pop- needs merge, unable to refresh index

后端 未结 10 1741
遥遥无期
遥遥无期 2020-12-12 20:00

I can\'t pop my stash because I merged a branch which apparently conflicts with my stash and now my stash is seemingly unable to be popped.

app.coffee: needs         


        
10条回答
  •  有刺的猬
    2020-12-12 20:35

    If anyone is having this issue outside of a merge/conflict/action, then it could be the git lock file for your project causing the issue.

    git reset
         fatal: Unable to create '/PATH_TO_PROJECT/.git/index.lock': File exists.
    rm -f /PATH_TO_PROJECT/.git/index.lock
    git reset
    git stash pop
    

提交回复
热议问题