Difference between git stash pop and git stash apply

前端 未结 7 823
忘了有多久
忘了有多久 2020-11-29 14:21

I\'ve been using git stash pop for quite some time. I recently found out about the git stash apply command. When I tried it out, it seemed to work

7条回答
  •  悲&欢浪女
    2020-11-29 14:51

    Assuming there will be no errors thrown, and you want to work on the top stash item in the list of available stashes:

    git stash pop = git stash apply + git stash drop

提交回复
热议问题