{"id":27554290,"url":"https://github.com/uchkunrakhimow/github-repo-cloner","last_synced_at":"2025-04-19T14:32:34.893Z","repository":{"id":287890081,"uuid":"966131384","full_name":"uchkunrakhimow/github-repo-cloner","owner":"uchkunrakhimow","description":"A powerful command-line tool to easily clone all repositories from any GitHub user with advanced filtering options.","archived":false,"fork":false,"pushed_at":"2025-04-14T13:02:03.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T14:23:28.657Z","etag":null,"topics":["automation","bash","cli","clone","devtools","git","github","repository","script","tool"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/uchkunrakhimow.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-14T12:59:20.000Z","updated_at":"2025-04-14T13:02:07.000Z","dependencies_parsed_at":"2025-04-14T14:23:30.657Z","dependency_job_id":"55531203-633b-4165-8ae2-1b5bcd7ad096","html_url":"https://github.com/uchkunrakhimow/github-repo-cloner","commit_stats":null,"previous_names":["uchkunrakhimow/github-repo-cloner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fgithub-repo-cloner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fgithub-repo-cloner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fgithub-repo-cloner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fgithub-repo-cloner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uchkunrakhimow","download_url":"https://codeload.github.com/uchkunrakhimow/github-repo-cloner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249714542,"owners_count":21314865,"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":["automation","bash","cli","clone","devtools","git","github","repository","script","tool"],"created_at":"2025-04-19T14:30:39.775Z","updated_at":"2025-04-19T14:32:34.887Z","avatar_url":"https://github.com/uchkunrakhimow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Repository Cloner\n\nA powerful and flexible command-line tool to clone all repositories from a specified GitHub user.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Features\n\n- Clone all repositories from any GitHub user\n- Support for both HTTPS and SSH protocols\n- Options to limit the number of repositories\n- Ability to skip forked repositories\n- Verbose output control\n- Easy-to-use command-line interface\n\n## Prerequisites\n\n- [Git](https://git-scm.com/downloads)\n- [GitHub CLI](https://cli.github.com/)\n- [jq](https://stedolan.github.io/jq/download/)\n\n## Installation\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/uchkunrakhimow/github-repo-cloner.git\n```\n\n2. Make the script executable:\n\n```bash\nchmod +x github-repo-cloner.sh\n```\n\n3. (Optional) Move the script to your PATH for system-wide access:\n\n```bash\nsudo mv github-repo-cloner.sh /usr/local/bin/github-repo-cloner\n```\n\n## Usage\n\n```bash\n./github-repo-cloner.sh [OPTIONS]\n```\n\n### Options\n\n- `-u, --username USERNAME` - GitHub username (required)\n- `-o, --output-dir DIR` - Output directory (default: USERNAME-repos)\n- `-p, --protocol PROTOCOL` - Clone protocol: https or ssh (default: https)\n- `-l, --limit LIMIT` - Maximum number of repositories to clone (default: 1000)\n- `-s, --skip-forks` - Skip forked repositories\n- `-q, --quiet` - Suppress verbose output\n- `-h, --help` - Display help message and exit\n\n### Examples\n\nClone all repositories from a user:\n\n```bash\n./github-repo-cloner.sh --username octocat\n```\n\nClone repositories using SSH:\n\n```bash\n./github-repo-cloner.sh --username octocat --protocol ssh\n```\n\nClone only original repositories (no forks):\n\n```bash\n./github-repo-cloner.sh --username octocat --skip-forks\n```\n\nSpecify output directory:\n\n```bash\n./github-repo-cloner.sh --username octocat --output-dir my-octocat-repos\n```\n\nLimit the number of repositories:\n\n```bash\n./github-repo-cloner.sh --username octocat --limit 10\n```\n\n## Authentication\n\nThe script uses GitHub CLI for authentication. Before running the script, make sure you're authenticated with GitHub CLI:\n\n```bash\ngh auth login\n```\n\n## Error Handling\n\nThe script includes comprehensive error handling:\n\n- Checks if required tools (GitHub CLI, jq) are installed\n- Verifies GitHub CLI authentication status\n- Validates command-line arguments\n- Handles repository cloning failures gracefully\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [GitHub CLI](https://cli.github.com/) for providing a powerful API\n- [jq](https://stedolan.github.io/jq/) for JSON processing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchkunrakhimow%2Fgithub-repo-cloner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuchkunrakhimow%2Fgithub-repo-cloner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchkunrakhimow%2Fgithub-repo-cloner/lists"}