为什么git remote add不工作__?

ih99xse1  于 2023-02-02  发布在  Git
关注(0)|答案(1)|浏览(143)

git remote add无法工作,我甚至尝试了$ git remote set-url/ $ git remote set-url --add Local_1
$ git remote add local_1 \C\用户\卢西亚诺\OneDrive\工作区\仓库_Alura_test\服务器使用情况:git远程添加[]

-f, --fetch           fetch the remote branches
--tags                import all tags and associated objects when fetching
                      or do not fetch any tag at all (--no-tags)
-t, --track <branch>  branch(es) to track
-m, --master <branch>
                      master branch
--mirror[=(push|fetch)]
                      set up remote as a mirror to push to or fetch from
uqzxnwby

uqzxnwby1#

Git remote抱怨目标目录包含空格字符,因此被解释为多个参数。

git remote add local_1 '\C\Users\Luciano\OneDrive\Área de Trabalho\Repositório_Alura_teste\Server'

另外,当在路径中使用窗口斜线(\)时,需要对它们进行转义。通常情况下,使用/会更好。

相关问题