0

I am trying to download a folder from a Github Git repo using SVN and the instructions found here.

However, when I type:

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

I get the error message:

svn: E170000: URL 'https://github.com/johnmyleswhite/ML_for_Hackers/tree/master/08-PCA/data' doesn't exist

Any ideas what is going wrong? I am using Slik SVN on 64-bit Windows.

Community
  • 1
  • 1
tchakravarty
  • 10,736
  • 12
  • 72
  • 116
  • Don't know why you download a folder from git repo , but checkout the whole project directly seem works fine. – johnMa Dec 27 '13 at 13:06
  • @johnMa The entire repo contains a lot of data, and I don't want to download everything. – tchakravarty Dec 27 '13 at 13:07
  • First i think is a URL UTF8 issue but after i delete `08-PCA`, i got `URL 'https://github.com/johnmyleswhite/ML_for_Hackers/tree/master' doesn't exist `, so i think maybe that's because the checkout url is not a subversion checkout url. – johnMa Dec 27 '13 at 13:17
  • 1
    @johnMa You are correct, I was not constructing the URL correctly. [This](http://stackoverflow.com/a/18324458/1414455) helped. – tchakravarty Dec 27 '13 at 13:19

2 Answers2

6

The following solves your problem:

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

Note the difference: not "tree/master", but "trunk".

akhikhl
  • 2,552
  • 18
  • 23
0

I got this error when my URL was pointing to /tree but not the /branches.

Nalan Madheswaran
  • 10,136
  • 1
  • 57
  • 42