{"id":20005279,"url":"https://github.com/praveenkumar/getgithub","last_synced_at":"2026-02-21T09:02:38.771Z","repository":{"id":56854355,"uuid":"131940795","full_name":"praveenkumar/getgithub","owner":"praveenkumar","description":"Get file or directory from the github repo without cloning.","archived":false,"fork":false,"pushed_at":"2018-05-07T15:26:03.000Z","size":335,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-04T17:41:28.979Z","etag":null,"topics":["git","github","golang","repository"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/praveenkumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-03T04:14:43.000Z","updated_at":"2018-06-10T07:57:47.000Z","dependencies_parsed_at":"2022-09-08T12:24:50.855Z","dependency_job_id":null,"html_url":"https://github.com/praveenkumar/getgithub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/praveenkumar/getgithub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveenkumar%2Fgetgithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveenkumar%2Fgetgithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveenkumar%2Fgetgithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveenkumar%2Fgetgithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praveenkumar","download_url":"https://codeload.github.com/praveenkumar/getgithub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praveenkumar%2Fgetgithub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29677881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","github","golang","repository"],"created_at":"2024-11-13T05:38:48.103Z","updated_at":"2026-02-21T09:02:33.757Z","avatar_url":"https://github.com/praveenkumar.png","language":"Go","readme":"# getgithub\nGet specific file or directory from the a github repo without cloning.\n\nHow to Install/Get\n------------------\n\n    $ go get github.com/praveenkumar/getgithub\n    $ export PATH=$PATH:$GOPATH/bin\n    $ getgithub -h\n     Usage of ./getgithub:\n       -branch string\n         \tbranch or tag (default \"master\")\n       -dest string\n         \tDestination directory (default \"/Users/prkumar/work/github/go_practice/src/github.com/praveenkumar/getgithub/out\")\n       -dir string\n         \tDirectory or file to download (default \"/\")\n       -list\n         \tList the directory/file for provided Path\n       -owner string\n         \tName of the repo owner\n       -repo string\n         \tName of the repo\n\nHow to Use\n----------\n\nGet the list of file and directories from the top of repository.\n\n     $ ./getgithub -repo minishift -owner minishift -list\n    file \t .gitignore \n    file \t Gopkg.lock \n    file \t Gopkg.toml \n    file \t LICENSE \n    file \t Makefile \n    dir \t cmd \n    dir \t test \n    dir \t .circleci \n    file \t .travis.yml \n    file \t README.adoc \n    file \t ROADMAP.adoc \n    file \t centos_ci.sh \n    dir \t addons \n    dir \t scripts \n    dir \t .github \n    file \t .gitlab-ci.yml \n    file \t CONTRIBUTING.adoc \n    file \t appveyor.yml \n    dir \t docs \n    file \t gen_help_text.go \n    dir \t pkg \n    \nGet the list of files and directories from specified directory.\n\n    $ ./getgithub -repo minishift -owner minishift -dir /pkg -list\n    dir \t pkg/version \n    dir \t pkg/minikube \n    dir \t pkg/minishift \n    dir \t pkg/testing \n    dir \t pkg/util\n\nGet the content of the file and directories from specified directory keeping directory tree intact.\n\n    $ ./getgithub -repo minishift -owner minishift -dir /pkg/minishift -dest /tmp/\n    $ ls /tmp/pkg/minishift/\n    addon\t\tcluster\t\tconfig\t\tdocker\t\tnetwork\t\topenshift\tprovisioner\tshell\t\tupdate\n    cache\t\tclusterup\tconstants\thostfolder\toc\t\tprofile\t\tregistration\tsystemd\t\tutil\n\n           \nHow to build\n------------\n \n    $ make build\n    \nNote\n----\n\nIf you get rate limit error then set `GH_TOKEN` to environment variable.\n\n`$ export GH_TOKEN=\u003cmy_token\u003e`\n\n- Github Token: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/                 ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraveenkumar%2Fgetgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraveenkumar%2Fgetgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraveenkumar%2Fgetgithub/lists"}