{"id":29947051,"url":"https://github.com/tcelestino/clone-repos","last_synced_at":"2026-04-05T21:02:41.704Z","repository":{"id":305500855,"uuid":"921173570","full_name":"tcelestino/clone-repos","owner":"tcelestino","description":"A lightweight Bash script that simplifies the process of batch-cloning multiple git repositories. ","archived":false,"fork":false,"pushed_at":"2025-07-20T12:16:42.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T14:22:42.151Z","etag":null,"topics":["bash","bash-script","git","github","gitlab","repositories"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcelestino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-23T13:32:36.000Z","updated_at":"2025-07-20T12:16:45.000Z","dependencies_parsed_at":"2025-07-20T14:22:44.190Z","dependency_job_id":"3c0d006a-c24f-4379-83dd-36df9d98b057","html_url":"https://github.com/tcelestino/clone-repos","commit_stats":null,"previous_names":["tcelestino/clone-repos"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tcelestino/clone-repos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcelestino%2Fclone-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcelestino%2Fclone-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcelestino%2Fclone-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcelestino%2Fclone-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcelestino","download_url":"https://codeload.github.com/tcelestino/clone-repos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcelestino%2Fclone-repos/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268505798,"owners_count":24260971,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","bash-script","git","github","gitlab","repositories"],"created_at":"2025-08-03T06:48:32.685Z","updated_at":"2025-12-30T21:50:43.425Z","avatar_url":"https://github.com/tcelestino.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clone Repos\n\nA simple bash script to clone multiple GitHub repositories using SSH protocol. The script automatically converts HTTPS URLs to SSH format and clones all repositories listed in a text file to your specified directory.\n\n## Prerequisites\n\n- Git installed\n- SSH key configured and added to your GitHub account\n- Linux/Unix environment\n\n## Setup SSH Key\n\nIf you haven't set up your SSH key yet, follow these steps:\n\n1. Generate SSH key:\n\n```bash\nssh-keygen -t ed25519 -C \"your_email@example.com\"\n```\n\n2. Add the SSH key to your GitHub account:\n   - Copy your public key: `cat ~/.ssh/id_ed25519.pub`\n   - Go to GitHub → Settings → SSH and GPG keys → New SSH key\n   - Paste your key and save\n\n## Usage\n\n1. Create a text file (e.g., `repos.txt`) with your repository URLs, one per line:\n\n```\nhttps://github.com/user/repo1\nhttps://github.com/user/repo2\ngit@github.com:user/repo3.git\n```\n\n2. Make the script executable:\n\n```bash\nchmod +x clone-repos.sh\n```\n\n3. Run the script:\n\n```bash\n./clone-repos.sh repos.txt [target_directory]\n```\n\nThe script accepts two parameters:\n\n- `repos.txt`: Required. File containing repository URLs\n- `target_directory`: Optional. Directory where repositories will be cloned (default: ~/Projects)\n\nExamples:\n\n```bash\n# Clone to default directory (~/Projects)\n./clone-repos.sh repos.txt\n\n# Clone to a specific directory\n./clone-repos.sh repos.txt ~/workspace/my-repos\n```\n\nThe script will:\n\n- Convert HTTPS URLs to SSH format automatically\n- Clone each repository to the specified directory (or ~/Projects if not specified)\n- Skip empty lines and comments (lines starting with #)\n- Show progress for each repository being cloned\n\n## Example repos.txt\n\n```\n# My repositories\nhttps://github.com/username/repo\ngit@github.com:username/repo.git\nhttps://github.com/company/repo\ngit@github.com:company/repo.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcelestino%2Fclone-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcelestino%2Fclone-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcelestino%2Fclone-repos/lists"}