Spr*_*tup 1 git macos terminal
我试图在终端上使用git进行我的第一次提交,但是我试图提交的文件显然不存在......但确实如此.当我跑步时,ls我可以在列出的文件中看到它.它是文件夹中命名Portland Code School Example的文件夹/Users/SP_Desktop1/dropbox/coding.它里面有一个简单的index.html网页.
当我尝试在文件夹内导航时(在验证我在coding文件中使用后pwd)使用cd Portland Code School Example它返回-bash: cd: portland: No such file or directory
我能够cd从coding文件中进入其他文件,但由于某种原因我无法进入该Portland Code School Example文件夹.我想,一旦我在里面,我可以index.html暂存文件将其提交给github.
谢谢你的帮助.
问题是您尝试导航的目录名称中有空格.逃离空间\时cd:
> cd Portland\ Code\ School\ Example
Run Code Online (Sandbox Code Playgroud)
或者将目录名称用引号括起来:
> cd "Portland Code School Example"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
874 次 |
| 最近记录: |