Spot Stash Mistake
找错误 中等
题目
这个序列 stashes, 切换分支, and pops. 什么能 go 错误?
代码
git stash
git checkout other-branch
git stash pop
提示
Stash pop 能 cause conflicts 如果目标分支有 更改.
解释
Stashed 更改是 制作相对到 原始分支. 当你 pop 它们 on 不同分支, file 状态可能不 match, causing conflicts. 如果这个 happens, 你必须 resolve conflicts manually. 到 avoid 这个, stash and pop on 相同分支, or use git stash 分支 <新-分支> 到创建分支从 stash.
相关资源
相关课程
相关速查表
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。