{"id":23039200,"url":"https://github.com/gni/g2g","last_synced_at":"2026-03-09T04:32:42.848Z","repository":{"id":197518062,"uuid":"698806227","full_name":"gni/g2g","owner":"gni","description":"Easy migration between GitLab instances for specific group with it's repositories and subgroups.","archived":false,"fork":false,"pushed_at":"2025-03-13T17:25:54.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T23:46:21.260Z","etag":null,"topics":["gitlab","gitlab-group","massdownload","migrated","migration"],"latest_commit_sha":null,"homepage":"","language":"Python","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/gni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-10-01T02:54:15.000Z","updated_at":"2025-03-13T17:26:00.000Z","dependencies_parsed_at":"2024-11-25T09:06:45.183Z","dependency_job_id":"bd2581af-38c7-4992-832c-3557f5988fb2","html_url":"https://github.com/gni/g2g","commit_stats":null,"previous_names":["exaluc/g2g","ioluc/g2g","gni/g2g"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gni/g2g","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gni%2Fg2g","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gni%2Fg2g/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gni%2Fg2g/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gni%2Fg2g/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gni","download_url":"https://codeload.github.com/gni/g2g/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gni%2Fg2g/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: 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":["gitlab","gitlab-group","massdownload","migrated","migration"],"created_at":"2024-12-15T18:28:53.493Z","updated_at":"2026-03-09T04:32:42.813Z","avatar_url":"https://github.com/gni.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# g2g: GitLab to GitLab Group Migrator\n\n`g2g` is a Python CLI utility designed to streamline the process of migrating groups, and subgroups from one GitLab instance to another.\n\n## Features\n\n- Migrate entire group with his nested subgroups/repositories.\n- Works with private and public repositories.\n- Handles existing groups and repositories elegantly.\n- Generate a JSON backup of Group metadata.\n- Token-based authentication for security.\n\n## Installation\n\nYou can install the package from PyPI:\n\n```bash\npip install g2g\n```\n\n## Usage\n\n### Basic usage:\n\nThe primary commands for `g2g` are `download` and `upload`.\n\n```bash\ng2g download --api-url \"https://gitlab.com/api/v4\" --group \"mloops\" --clean-all\nPlease enter your GitLab Private Token: \nRemoving existing group directory: mloops\nCloning devops-within...\nCloning devops-brother...\nDownloading subgroup devops-card\nCloning devops-Mr...\nDownloading subgroup devops-animal\nCloning devops-life...\nDownloading subgroup devops-home\nCloning devops-free...\nDownloading subgroup devops-recently\nCloning devops-leave...\nCloning devops-trouble...\nDownloading subgroup devops-time\nCloning devops-while...\nDownloading subgroup devops-girl\nCloning devops-hotel...\n```\n\n```bash\ng2g upload --api-url https://new.instance.localhost/api/v4 --group mloops\nPlease enter your GitLab Private Token for the new instance: \n{\n    \"devops-brother\": {\n        \"path\": \"mloops/devops-brother\"\n    },\n    \"devops-trouble\": {\n        \"path\": \"mloops/devops-home/devops-recently/devops-trouble\"\n    },\n    \"devops-leave\": {\n        \"path\": \"mloops/devops-home/devops-recently/devops-leave\"\n    },\n    \"devops-free\": {\n        \"path\": \"mloops/devops-home/devops-free\"\n    },\n    \"devops-while\": {\n        \"path\": \"mloops/devops-time/devops-while\"\n    },\n    \"devops-hotel\": {\n        \"path\": \"mloops/devops-time/devops-girl/devops-hotel\"\n    },\n    \"devops-within\": {\n        \"path\": \"mloops/devops-within\"\n    },\n    \"devops-life\": {\n        \"path\": \"mloops/devops-card/devops-animal/devops-life\"\n    },\n    \"devops-Mr\": {\n        \"path\": \"mloops/devops-card/devops-Mr\"\n    }\n}\nProcessing devops-brother with path parts: ['mloops', 'devops-brother']\nGroup specified. Updated path parts: ['mloops', 'devops-brother']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating new project: devops-brother under parent ID: 3283\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-brother.git\nProcessing devops-trouble with path parts: ['mloops', 'devops-home', 'devops-recently', 'devops-trouble']\nGroup specified. Updated path parts: ['mloops', 'devops-home', 'devops-recently', 'devops-trouble']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-home\nGroup devops-home created or fetched with ID: 3285\nCreating or getting group: devops-recently\nGroup devops-recently created or fetched with ID: 3286\nCreating new project: devops-trouble under parent ID: 3286\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-home/devops-recently/devops-trouble.git\nProcessing devops-leave with path parts: ['mloops', 'devops-home', 'devops-recently', 'devops-leave']\nGroup specified. Updated path parts: ['mloops', 'devops-home', 'devops-recently', 'devops-leave']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-home\nGroup devops-home created or fetched with ID: 3285\nCreating or getting group: devops-recently\nGroup devops-recently created or fetched with ID: 3286\nCreating new project: devops-leave under parent ID: 3286\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-home/devops-recently/devops-leave.git\nProcessing devops-free with path parts: ['mloops', 'devops-home', 'devops-free']\nGroup specified. Updated path parts: ['mloops', 'devops-home', 'devops-free']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-home\nGroup devops-home created or fetched with ID: 3285\nCreating new project: devops-free under parent ID: 3285\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-home/devops-free.git\nProcessing devops-while with path parts: ['mloops', 'devops-time', 'devops-while']\nGroup specified. Updated path parts: ['mloops', 'devops-time', 'devops-while']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-time\nGroup devops-time created or fetched with ID: 3290\nCreating new project: devops-while under parent ID: 3290\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-time/devops-while.git\nProcessing devops-hotel with path parts: ['mloops', 'devops-time', 'devops-girl', 'devops-hotel']\nGroup specified. Updated path parts: ['mloops', 'devops-time', 'devops-girl', 'devops-hotel']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-time\nGroup devops-time created or fetched with ID: 3290\nCreating or getting group: devops-girl\nGroup devops-girl created or fetched with ID: 3292\nCreating new project: devops-hotel under parent ID: 3292\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-time/devops-girl/devops-hotel.git\nProcessing devops-within with path parts: ['mloops', 'devops-within']\nGroup specified. Updated path parts: ['mloops', 'devops-within']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating new project: devops-within under parent ID: 3283\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-within.git\nProcessing devops-life with path parts: ['mloops', 'devops-card', 'devops-animal', 'devops-life']\nGroup specified. Updated path parts: ['mloops', 'devops-card', 'devops-animal', 'devops-life']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-card\nGroup devops-card created or fetched with ID: 3295\nCreating or getting group: devops-animal\nGroup devops-animal created or fetched with ID: 3296\nCreating new project: devops-life under parent ID: 3296\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-card/devops-animal/devops-life.git\nProcessing devops-Mr with path parts: ['mloops', 'devops-card', 'devops-Mr']\nGroup specified. Updated path parts: ['mloops', 'devops-card', 'devops-Mr']\nCreating or getting group: mloops\nGroup mloops created or fetched with ID: 3283\nCreating or getting group: devops-card\nGroup devops-card created or fetched with ID: 3295\nCreating new project: devops-Mr under parent ID: 3295\nSuccessfully created and pushed to https://new.instance.localhost/mloops/devops-card/devops-Mr.git\n```\n\n### Additional Options:\n\n- `--token TEXT` The GitLab Private Token for CI/CD\n- `--output-file` to specify the JSON file for saving repo information.\n- `--input-file` to specify the JSON file for reading repo information.\n- `--clean-all` to remove all existing repos before download.\n\n## Contributing\n\nAll contributions are welcome! Please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nMIT Licensed. See [LICENSE](LICENSE) for full details.\n\n## Author\n\n- [Lucian BLETAN](https://github.com/gni)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgni%2Fg2g","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgni%2Fg2g","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgni%2Fg2g/lists"}