Aborting a stash pop in Git

后端 未结 14 2205
鱼传尺愫
鱼传尺愫 2020-12-22 17:47

I popped a stash and there was a merge conflict. Unlike the question that is listed as a duplicate, I already had some uncommitted changes in the directory which I wanted to

14条回答
  •  借酒劲吻你
    2020-12-22 17:51

    If you don't have to worry about any other changes you made and you just want to go back to the last commit, then you can do:

    git reset .
    git checkout .
    git clean -f
    

提交回复
热议问题