{"id":15958236,"url":"https://github.com/marcfrederick/git-foreach","last_synced_at":"2025-03-26T09:32:36.314Z","repository":{"id":242773381,"uuid":"810448489","full_name":"marcfrederick/git-foreach","owner":"marcfrederick","description":"Lightweight utility designed to execute a command in each Git repository within a directory and its subdirectories","archived":false,"fork":false,"pushed_at":"2025-03-18T19:06:03.000Z","size":72,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T20:22:14.547Z","etag":null,"topics":["bash","git","git-commands","shell"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcfrederick.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2024-06-04T18:06:33.000Z","updated_at":"2025-03-18T19:06:07.000Z","dependencies_parsed_at":"2025-01-13T21:30:24.071Z","dependency_job_id":"6055ff56-693b-431b-9478-47131aa87b5a","html_url":"https://github.com/marcfrederick/git-foreach","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":"0.28205128205128205","last_synced_commit":"bf390c8f0b94646803c4740c884adaee13ade067"},"previous_names":["marcfrederick/git-foreach"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcfrederick%2Fgit-foreach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcfrederick%2Fgit-foreach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcfrederick%2Fgit-foreach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcfrederick%2Fgit-foreach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcfrederick","download_url":"https://codeload.github.com/marcfrederick/git-foreach/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245626217,"owners_count":20646322,"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":["bash","git","git-commands","shell"],"created_at":"2024-10-07T14:02:17.587Z","updated_at":"2025-03-26T09:32:36.039Z","avatar_url":"https://github.com/marcfrederick.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-foreach\n\ngit-foreach is a lightweight utility designed to execute a command in each Git repository within a directory and its\nsubdirectories. It's particularly useful for performing bulk operations, such as `git pull` or `git status`, across\nmultiple repositories simultaneously.\n\n## Usage\n\nTo use `git-foreach`, simply prepend your desired command with `git-foreach`. The command will be executed in each Git\nrepository found in the current directory and all its subdirectories.\n\n```shell\ngit-foreach \u003ccommand\u003e\n```\n\nFor instance, if you want to execute git pull in each repository, you would use:\n\n```shell\ngit-foreach \"git pull\"\n```\n\nBy default, git-foreach will stop executing if the command fails in one of the repositories. If you want the execution\nto continue despite failures, you can append `|| :` to the command. This will mask the error and allows git-foreach to\ncontinue processing the remaining repositories.\n\n```shell\ngit-foreach \"git pull || :\"\n```\n\n## Installation\n\nPre-built binaries are available for Windows, Linux, and macOS. You can download them from\nthe [releases page](https://github.com/marcfrederick/git-foreach/releases) and add them to your `$PATH`. The release\npage also includes instructions for installation using [Homebrew](https://brew.sh), `curl`, or PowerShell.\n\n### Homebrew\n\nIf you're using macOS or Linux, you can install `git-foreach` using [Homebrew](https://brew.sh):\n\n```shell\nbrew install marcfrederick/homebrew-tap/git-foreach\n```\n\n## Building from Source\n\nTo build the utility from source, ensure you have [Rust](https://www.rust-lang.org) installed on your system. Then,\nexecute the following commands:\n\n```shell\ngit clone git@github.com:marcfrederick/git-foreach.git\ncd git-foreach\ncargo build --release\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues and pull requests on\nthe [GitHub repository](https://github.com/marcfrederick/git-foreach).\n\n## License\n\nThis project is licensed under the MIT License. See\nthe [LICENSE](https://github.com/marcfrederick/git-foreach/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcfrederick%2Fgit-foreach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcfrederick%2Fgit-foreach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcfrederick%2Fgit-foreach/lists"}