Predict Cherry-选取 Result
预测输出 中等
题目
提交 abc123 添加 file X on 分支 . 你运行 `git cherry-选取 abc123` on 分支 B. 什么 happens?
代码
git checkout B
git cherry-pick abc123
提示
Cherry-选取 applies 更改的 one 提交到 current 分支.
解释
git cherry-选取 abc123 takes 更改从 提交 abc123 (哪个添加 file X on 分支) and applies 它们到 分支 B as 新提交. 新提交有 不同 hash 但相同更改. 分支是 unaffected.
相关资源
相关课程
相关速查表
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。