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
使用Subversion从Git下载单个目录_Git_Svn - Fatal编程技术网

使用Subversion从Git下载单个目录

使用Subversion从Git下载单个目录,git,svn,Git,Svn,我正在尝试使用SVN和找到的说明进行下载 但是,当我键入时: svn checkout https://github.com/johnmyleswhite/ML_for_Hackers/tree/master/08-PCA/data . 我收到错误消息: svn:E170000:URL '' 不存在 你知道怎么回事吗?我在64位Windows上使用。以下解决了您的问题: svn checkout https://github.com/johnmyleswhite/ML_for_Hackers/

我正在尝试使用SVN和找到的说明进行下载

但是,当我键入时:

svn checkout https://github.com/johnmyleswhite/ML_for_Hackers/tree/master/08-PCA/data .
我收到错误消息:

svn:E170000:URL '' 不存在


你知道怎么回事吗?我在64位Windows上使用。

以下解决了您的问题:

svn checkout https://github.com/johnmyleswhite/ML_for_Hackers/trunk/08-PCA/data .

请注意区别:不是“树/主”,而是“主干”。

以下解决了您的问题:

svn checkout https://github.com/johnmyleswhite/ML_for_Hackers/trunk/08-PCA/data .

请注意区别:不是“tree/master”,而是“trunk”。

当我的URL指向/tree而不是/branchs时,我出现了这个错误。

当我的URL指向/tree而不是/branchs时,我出现了这个错误。

不知道为什么要从git repo下载文件夹,但是直接签出整个项目似乎效果不错。@johnMa整个repo包含大量数据,我不想下载所有内容。首先我认为是URL UTF8问题,但在我删除
08-PCA
后,我得到了
URL'https://github.com/johnmyleswhite/ML_for_Hackers/tree/master'不存在
,所以我想这可能是因为签出url不是subversion签出url。@johnMa你是对的,我没有正确构造url。帮助。我不知道为什么要从git repo下载文件夹,但直接签出整个项目似乎效果不错。@johnMa整个repo包含大量数据,我不想下载所有内容。首先我认为是URL UTF8问题,但在我删除
08-PCA
之后,我得到了
URL'https://github.com/johnmyleswhite/ML_for_Hackers/tree/master'不存在
,因此我认为这可能是因为签出url不是subversion签出url。@johnMa您是对的,我没有正确构造url。帮助。