{"id":13561452,"url":"https://github.com/caarlos0/clone-org","last_synced_at":"2025-04-06T13:10:43.846Z","repository":{"id":11197579,"uuid":"68717239","full_name":"caarlos0/clone-org","owner":"caarlos0","description":"Clone all repos of a github organization","archived":false,"fork":false,"pushed_at":"2025-03-14T08:25:07.000Z","size":266,"stargazers_count":77,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T11:11:17.107Z","etag":null,"topics":["git","github-api","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caarlos0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["caarlos0"]}},"created_at":"2016-09-20T13:56:58.000Z","updated_at":"2025-03-14T08:25:10.000Z","dependencies_parsed_at":"2023-02-12T21:30:44.405Z","dependency_job_id":"40a4a066-3bc8-424f-a06b-af63dc2cdeaa","html_url":"https://github.com/caarlos0/clone-org","commit_stats":{"total_commits":137,"total_committers":7,"mean_commits":"19.571428571428573","dds":0.5109489051094891,"last_synced_commit":"215dadb3fe5189b3c52e99472960de2a69fc4f2f"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fclone-org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fclone-org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fclone-org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fclone-org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caarlos0","download_url":"https://codeload.github.com/caarlos0/clone-org/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485287,"owners_count":20946398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-api","golang"],"created_at":"2024-08-01T13:00:56.787Z","updated_at":"2025-04-06T13:10:43.817Z","avatar_url":"https://github.com/caarlos0.png","language":"Go","funding_links":["https://github.com/sponsors/caarlos0"],"categories":["Go"],"sub_categories":[],"readme":"# clone-org\n\n\n[![Release](https://img.shields.io/github/release/caarlos0/clone-org.svg?style=flat-square)](https://github.com/caarlos0/clone-org/releases/latest)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build status](https://img.shields.io/github/actions/workflow/status/caarlos0/clone-org/build.yml?style=flat-square\u0026branch=main)](https://github.com/caarlos0/clone-org/actions?workflow=build)\n[![Go Report Card](https://goreportcard.com/badge/github.com/caarlos0/clone-org?style=flat-square)](https://goreportcard.com/report/github.com/caarlos0/clone-org)\n[![Godoc](https://godoc.org/github.com/caarlos0/clone-org?status.svg\u0026style=flat-square)](http://godoc.org/github.com/caarlos0/clone-org)\n[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=flat-square)](https://github.com/goreleaser)\n\n\nA simple command line tool to clone all repos of a given organization.\n\nI needed to do that so I can `grep` all repos for some stuff. GitHub search\nwasn't powerful enough to do what I needed, so, here it is.\n\n## Usage\n\n```\nNAME:\n   clone-org - Clone all repos of a github organization\n\nUSAGE:\n   clone-org [global options] command [command options] [arguments...]\n\nVERSION:\n   master\n\nCOMMANDS:\n     help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --org value, -o value\n   --token value, -t value         [$GITHUB_TOKEN]\n   --destination value, -d value\n   --help, -h                     show help\n   --version, -v                  print the version\n```\n\n## Notes\n\n* if no destination is provided, the clone will be made in\n`/tmp/organization-name`\n* a `git clone --depth 1` will be performed, meaning that only the last commit\nof the default branch will be available. On future versions this may be\nconfigurable.\n\n\n## Install\n\n**go**:\n\n```sh\ngo install -v github.com/caarlos0/clone-org/cmd/clone-org@latest\n```\n\n**homebrew**:\n\n```sh\nbrew install caarlos0/tap/clone-org\n```\n\n**macports**:\n\n```sh\nsudo port install clone-org\n```\n\n**snap**:\n\n```sh\nsnap install clone-org\n```\n\n**apt**:\n\n```sh\necho 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list\nsudo apt update\nsudo apt install clone-org\n```\n\n**yum**:\n\n```sh\necho '[caarlos0]\nname=caarlos0\nbaseurl=https://repo.caarlos0.dev/yum/\nenabled=1\ngpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo\nsudo yum install clone-org\n```\n\n**deb/rpm/apk**:\n\nDownload the `.apk`, `.deb` or `.rpm` from the [releases page][releases] and install with the appropriate commands.\n\n**manually**:\n\nDownload the pre-compiled binaries from the [releases page][releases] or clone the repo build from source.\n\n[releases]: https://github.com/caarlos0/clone-org/releases\n\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/caarlos0/clone-org.svg)](https://starchart.cc/caarlos0/clone-org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0%2Fclone-org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaarlos0%2Fclone-org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0%2Fclone-org/lists"}