【发布时间】:2017-11-25 13:52:35
【问题描述】:
git stash pop和git stash drop的区别?
两者都在删除存储,那么还有什么?
【问题讨论】:
-
这里是
git stashgit-scm.com/docs/git-stash的官方文档
标签: git version-control
git stash pop和git stash drop的区别?
两者都在删除存储,那么还有什么?
【问题讨论】:
git stashgit-scm.com/docs/git-stash的官方文档
标签: git version-control
git stash pop 删除顶部隐藏状态并将其应用到当前工作树的顶部。另一方面,git stash drop 只是删除该状态,而不是应用它。
【讨论】:
stash pop 是stash apply + stash drop。