Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从git克隆文件会出现错误;太多的争论”;_Git_Cmd_Pyenv - Fatal编程技术网

从git克隆文件会出现错误;太多的争论”;

从git克隆文件会出现错误;太多的争论”;,git,cmd,pyenv,Git,Cmd,Pyenv,我目前正在尝试设置此Django应用程序: 当我试图安装时,我得到一个错误 我在CMD中编写的git clone代码是:git clonehttps://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/插件/pyenv virtualenv 我得到的错误是: C:\Users\Erling>git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/pl

我目前正在尝试设置此Django应用程序:

当我试图安装时,我得到一个错误

我在CMD中编写的git clone代码是:
git clonehttps://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/插件/pyenv virtualenv

我得到的错误是:

C:\Users\Erling>git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
fatal: Too many arguments.

usage: git clone [<options>] [--] <repo> [<dir>]

-v, --verbose         be more verbose
-q, --quiet           be more quiet
--progress            force progress reporting
-n, --no-checkout     don't create a checkout
--bare                create a bare repository
--mirror              create a mirror repository (implies bare)
-l, --local           to clone from a local repository
--no-hardlinks        don't use local hardlinks, always copy
-s, --shared          setup as shared repository
--recurse-submodules[=<pathspec>]
                      initialize submodules in the clone
--recursive ...       alias of --recurse-submodules
-j, --jobs <n>        number of submodules cloned in parallel
--template <template-directory>
                      directory from which templates will be used
--reference <repo>    reference repository
--reference-if-able <repo>
                      reference repository
--dissociate          use --reference only while cloning
-o, --origin <name>   use <name> instead of 'origin' to track upstream
-b, --branch <branch>
                      checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
                      path to git-upload-pack on the remote
--depth <depth>       create a shallow clone of that depth
--shallow-since <time>
                      create a shallow clone since a specific time
--shallow-exclude <revision>
                      deepen history of shallow clone, excluding rev
--single-branch       clone only one branch, HEAD or --branch
--no-tags             don't clone any tags, and make later fetches not to follow them
--shallow-submodules  any cloned submodules will be shallow
--separate-git-dir <gitdir>
                      separate git dir from working tree
-c, --config <key=value>
                      set config inside the new repository
--server-option <server-specific>
                      option to transmit
-4, --ipv4            use IPv4 addresses only
-6, --ipv6            use IPv6 addresses only
--filter <args>       object filtering
--remote-submodules   any cloned submodules will use their remote-tracking branch
--sparse              initialize sparse-checkout file to include only files at root
C:\Users\Erling>git克隆https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/插件/pyenv virtualenv
致命:争论太多。
用法:git clone[][--][]
-v、 ——冗长,更冗长
-q、 ——安静点,安静点
--进度部队进度报告
-n、 --不签出不创建签出
--创建一个简单的存储库
--镜像创建镜像存储库(暗示为空)
-l、 --本地从本地存储库克隆
--无硬链接不使用本地硬链接,始终复制
-s、 --作为共享存储库的共享设置
--递归子模块[=]
初始化克隆中的子模块
--递归的。。。--recurse子模块的别名
-j、 --并行克隆的子模块的作业数
--模板
将从中使用模板的目录
--参考存储库
--如有可能,请参考
参考存储库
--分离使用--仅在克隆时引用
-o、 --使用原点而不是“原点”来跟踪上游
-b、 --分行
签出而不是遥控器的头部
-u、 --上传包
远程服务器上git上载包的路径
--深度创建该深度的浅克隆
--浅自
从特定时间开始创建浅层克隆
--浅层排除
深化浅克隆历史,不包括版次
--单分支只克隆一个分支,头分支或--branch
--无标记不克隆任何标记,并在以后进行回迁以不跟随它们
--浅子模块任何克隆的子模块都是浅的
--单独的git目录
从工作树中分离git目录
-c、 --配置
在新存储库中设置配置
--服务器选项
传输选项
-4,-ipv4仅使用ipv4地址
-6,-ipv6仅使用ipv6地址
--过滤对象过滤
--远程子模块任何克隆的子模块都将使用其远程跟踪分支
--稀疏初始化稀疏签出文件以仅包括根目录下的文件

似乎在
$(pyenv root)
中存在空格


顺便说一句,
pyenv
在Windows上不工作。有一个
pyenv win
正在Windows上工作。
pyenv-win

不支持AFAIK
pyenv-virtualenv
,该命令似乎是为bash编写的(或者通常是为bourne shell编写的),因为它使用
$(…)
替换命令。它在
cmd.exe
中肯定不起作用(它的行为与任何bourne-like shell非常不同)。使其工作的最简单方法可能是在git-bash中运行它。te命令
pyenv root
的输出是什么?在cmd.exe下,需要使用
FOR
循环将值分配给变量。是的,我知道这很疯狂。谢谢你的评论,我会查一下pyenv win来设置我的项目
git clone https://github.com/pyenv/pyenv-virtualenv.git "$(pyenv root)/plugins/pyenv-virtualenv"