{"id":20547550,"url":"https://github.com/ggonnella/git-batch-op","last_synced_at":"2026-06-05T19:31:37.374Z","repository":{"id":66484696,"uuid":"478752482","full_name":"ggonnella/git-batch-op","owner":"ggonnella","description":"allows to run git repository operations on a group of repositories","archived":false,"fork":false,"pushed_at":"2022-04-23T10:27:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T05:17:45.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ggonnella.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}},"created_at":"2022-04-06T22:56:15.000Z","updated_at":"2022-04-06T22:56:26.000Z","dependencies_parsed_at":"2023-03-22T18:47:45.857Z","dependency_job_id":null,"html_url":"https://github.com/ggonnella/git-batch-op","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ggonnella/git-batch-op","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggonnella%2Fgit-batch-op","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggonnella%2Fgit-batch-op/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggonnella%2Fgit-batch-op/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggonnella%2Fgit-batch-op/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggonnella","download_url":"https://codeload.github.com/ggonnella/git-batch-op/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggonnella%2Fgit-batch-op/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33957498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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":[],"created_at":"2024-11-16T02:08:55.946Z","updated_at":"2026-06-05T19:31:37.358Z","avatar_url":"https://github.com/ggonnella.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"GitBatchOp project is a Bash script which allows to run git repository\noperations on a group of repositories.\n\n# Installation\n\nTo install GitBatchOp, the repository main directory must be in path so that\nthe ``g`` script is found.\nAuto-completion can be enabled in Bash by sourcing the provided\nauto-completion script ``g-completion.bash``, e.g. in the Bash startup files.\n\n# Configuration file\n\nThe location of all git repositories, as well as the repository groups\nconfigurations are stored in a configuration file\n(default location: ``$HOME/.config/ggscripts/git_repository_locations``).\nEmpty and comment lines in this file are ignored.\n\nEach repository belong to a group; depending on the group\ndifferent operations are allowed and performed by the scripts.\nLines starting with ! are group and groupsets tab-separated declaration lines.\n\nIn the group declaration lines, the fields are:\n- [``!``, ``group``] constant values\n- group ID (format: like a C identifier)\n- ``allow_up``: allow this group as a target for the up operation (values: \"yes\" or \"no\")\n\ne.g.: ``!       group   gg      yes``\n\nIn groupset declaration lines, the fields are:\n- [``!``, ``groupset``] constant values\n- groupsetID (format: like a C identifier)\n- group [group ...]: space separated list of group names\n   to be included in the groupset\n- ``allow_up``: allow this groupset as a target for the up operation (values: \"yes\" or \"no\")\n\ne.g.: ``!       groupset        all     gg gg2 gg3       no``\n\nFinally, the metadata of repositories, such as location in different systems is\nstored. Each system is identified by the result of ``hostname`` or by the value\nassigned to an env variable called ``$NETWORK``.\n\nThe fields for each repository metadata line:\n- \u003cgroupID\u003e: group ID to which to assign the repository\n- server[,server2,...]: name of hosts for which a given location is given:\n- \u003cpath\u003e: path to the repository\n- \u003cname\u003e: a short repo-ID; optional, but if not provided, then single-repo\noperations will not be available\n\ne.g.: ``gg      hostA,hostB,hostC  ~/notes notes``\n\n# git up macro\n\nThe ``up`` macro, defined in ``git-up-macro`` can be added to the ``$HOME/.gitconfig``\ngit configuration file.\n\nIt defines an action ``git up``, which adds all modifications,\ncommits with the message \"update\" and pushes upstream.\nIf used as ``git up foo bar`` it uses the rest of the line as commit\nmessage.\nIt should not be used in repositories where commit messages matter.\nThus the configuration file of git-batch-op (see below) allows to\nspecify that the ``up`` operation (when called using ``g``) is allowed\non specific group (and sets of groups) of repositories.\n\n# Command line interface\n\nIn the following ``\u003ctarget\u003e`` is either a repository ID or a group ID\n                    as defined in the configuration file.\n\n- ``g st \u003ctarget\u003e [\u003ctarget\u003e ...]``: show the current status of all target repos\n- ``g df \u003ctarget\u003e [\u003ctarget\u003e ...]``: show git diff with the HEAD for all target repos\n- ``g lg \u003ctarget\u003e [\u003ctarget\u003e ...]``: show last commit log of all target repos\n- ``g ls \u003ctarget\u003e [\u003ctarget\u003e ...]``: show the path to all target repos\n- ``g up \u003crepoID\u003e commit msg``: commit and push changes in repo withID \u003crepoID\u003e;\n                     using the specified commit msg\n- ``g up \u003crepoID\u003e``: commit and push changes in repo withID \u003crepoID\u003e;\n                     use \"updated\" as git commit msg\n- ``$(g cd \u003crepoID\u003e): go to the path of repository with ID \u003crepoID\u003e\n- ``g --conf``: open the configuration file in vim\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggonnella%2Fgit-batch-op","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggonnella%2Fgit-batch-op","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggonnella%2Fgit-batch-op/lists"}