git pull fails 'error: refs/stash does not point to a valid object!'

前端 未结 2 636
我寻月下人不归
我寻月下人不归 2021-02-07 14:52

git pull is giving this error:

$ git pull
error: refs/stash does not point to a valid object!
error: refs/stash does not point to a valid object!
error: refs/sta         


        
2条回答
  •  滥情空心
    2021-02-07 15:31

    The simplest thing would be to completely remove your stash. Note that you’ll need to remove two files - not one file, as outlined in the linked solution:

    rm .git/refs/stash .git/logs/refs/stash
    

提交回复
热议问题