Predict Stash Pop
预测输出 中等
题目
你 stashed 更改, 然后 ran `git stash pop`. 什么 happens 到你的工作 directory?
代码
git stash
git stash pop
提示
Pop restores and 移除 stash in one 步骤.
解释
git stash pop applies 大多数 recent stash (stash@{0}) 到你的工作 directory and 移除它 从 stash 列表. 它是 equivalent 到 git stash apply + git stash drop. 如果 applying stash causes conflicts, stash 是 NOT dropped and 你必须 resolve conflicts manually.
相关资源
相关课程
相关速查表
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。