0

tried this:

TOKEN="bla"
wget -r --no-parent  --reject "index.html*" https://api.github.com/repos/organiztion/RepoName/contents/Framework/deploy_scripts/ --header "Authorization: token $TOKEN" --header 'Accept: application/vnd.github.v3.raw'

I am getting a file with a list of all the files in the directory. I want to the actual files and not a list.

Rather not write a bash script to loop over the files and download all of them.

I Prefer solutions that are "raw" meaning wget or curl and not svn ,please.

WebQube
  • 8,510
  • 12
  • 51
  • 93

1 Answers1

1

Github give you the opportunity to grab a repo with SVN. SVN allow you to download the content of a repo subfolder only.

Take a look at this post: Download a single folder or directory from a GitHub repo

Community
  • 1
  • 1
Adagyo
  • 422
  • 1
  • 4
  • 16
  • don't want to fill my user and password every time. does svn support ssh ? and do you know a way to do this via wget or curl? – WebQube Feb 23 '16 at 16:16
  • Maybe this will work (I cannot try at the moment, let me know if it work): `svn checkout svn+ssh://github.com/foobar/Test/trunk/foo`. I think that it's not possible with curl or wget, but i'm not a git expert. – Adagyo Feb 23 '16 at 16:45