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
1条答案
按热度按时间uqzxnwby1#
Git remote抱怨目标目录包含空格字符,因此被解释为多个参数。
另外,当在路径中使用窗口斜线(
\
)时,需要对它们进行转义。通常情况下,使用/
会更好。