Spot 添加 Mistake
找错误 简单
题目
这个 command 是 trying 到 stage file named 'my file.txt' (使用空间). 什么是 错误?
代码
git add my file.txt
提示
Filenames 使用空间需要 quotes.
解释
当 filename 包含空间, 它必须是 quoted or escaped. 不使用 quotes, Git interprets 'my' and 'file.txt' as two separate file paths. corrected command 是: git 添加 "my file.txt" or git 添加 'my file.txt'.
相关资源
相关课程
相关速查表
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。