{"id":19930637,"url":"https://github.com/mawngo/gitbatch","last_synced_at":"2025-10-17T22:46:22.524Z","repository":{"id":156167050,"uuid":"632750798","full_name":"mawngo/gitbatch","owner":"mawngo","description":"Utilities to batch manage git(lab) projects","archived":false,"fork":false,"pushed_at":"2024-06-03T02:58:00.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-06-19T04:10:51.074Z","etag":null,"topics":["git","gitlab"],"latest_commit_sha":null,"homepage":"","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/mawngo.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}},"created_at":"2023-04-26T03:54:18.000Z","updated_at":"2024-06-03T05:59:14.000Z","dependencies_parsed_at":"2024-01-22T10:54:42.619Z","dependency_job_id":"c05f72b4-0a89-49b5-9b8b-633e0c2c9265","html_url":"https://github.com/mawngo/gitbatch","commit_stats":null,"previous_names":["lana-toolbox/gitbatch","sitdownrightnow2552/gitbatch","mawngo/gitbatch","sitdownrightnow/gitbatch"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgitbatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgitbatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgitbatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawngo%2Fgitbatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mawngo","download_url":"https://codeload.github.com/mawngo/gitbatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241356291,"owners_count":19949495,"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","gitlab"],"created_at":"2024-11-12T23:04:41.216Z","updated_at":"2025-10-17T22:46:22.443Z","avatar_url":"https://github.com/mawngo.png","language":"Go","readme":"# Git Batch\n\nScript to batch handling git projects\n\n# Installation\n\nRequire go 1.24+\n\n```shell\ngo install github.com/mawngo/gitbatch@latest\n```\n\n## Feature\n\nBy default, this script is configured to use ssh auth. To using basic auth, you must specify your username\nusing ``--user=\u003cusername\u003e`` or ``-u=\u003cusername\u003e``. To switch back to ssh mode, specify ```--user=@ssh```\n\nTo show list of available commands\n\n```\n\u003e gitbatch -h\n\nApply git command to all sub folder\n\nUsage:\n  gitbatch [command]\n\nAvailable Commands:\n  clone       Clone all project in group (alias for 'clone gitlab')\n  fetch       Fetch all project in directory\n  pull        Pull all project in directory\n  push        Push all project in directory\n  help        Help about any command\n  completion  Generate the autocompletion script for the specified shell\n\nFlags:\n  -m, --mode string    Host mode (default \"gitlab\")\n      --parallel int   Maximum parallel for each commands (default 32)\n      --token string   Host token\n  -u, --user string    Auth user name [\u003cuser\u003e, @ssh] (default \"@ssh\")\n  -h, --help           help for gitbatch\n\nUse \"gitbatch [command] --help\" for more information about a command.\n```\n\n### Clone all projects in gitlab group\n\n```\ngitbatch clone [group id] [dir?]\n```\n\n```\ngitbatch cg [group id] [dir?]\n```\n\n### Fetch all projects inside directory\n\n```\ngitbatch fetch [dir?]\n```\n\nKnown issue: if you're using @ssh mode then your may see SSH_AUTH_SOCK error. To fix this issue consider lowering\nthe ``--parallel`` value. Currently, the parallel is capped at 8 for this command only.\n\n## MacOS User\n\nUsing @ssh mode, you may need to add key manually:\n\n```shell\nchmod 600 ~/.ssh/id_rsa\nssh-add ~/.ssh/id_rsa\n```\n\nReference: [Go Git Issue: ssh private key not being picked up](https://github.com/go-git/go-git/issues/218)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawngo%2Fgitbatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmawngo%2Fgitbatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawngo%2Fgitbatch/lists"}