How to reverse apply a stash?

前端 未结 11 2196
忘掉有多难
忘掉有多难 2020-11-29 14:32

I have a small patch saved away in my git stash. I\'ve applied it to my working copy using git stash apply. Now, I\'d like to back out those changes by revers

11条回答
  •  伪装坚强ぢ
    2020-11-29 15:24

    How to reverse apply a stash?

    Apart from what others have mentioned, easiest way is first do

    git reset HEAD
    

    and then checkout all local changes

    git checkout . 
    

提交回复
热议问题