{"id":27991641,"url":"https://github.com/salvatorecorvaglia/git-sweep","last_synced_at":"2025-08-18T10:11:55.759Z","repository":{"id":297664679,"uuid":"978695808","full_name":"salvatorecorvaglia/git-sweep","owner":"salvatorecorvaglia","description":"Git Bulk Branch Updater","archived":false,"fork":false,"pushed_at":"2025-06-06T17:22:42.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T18:30:08.805Z","etag":null,"topics":["bash","git"],"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/salvatorecorvaglia.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-05-06T11:29:22.000Z","updated_at":"2025-06-06T17:22:44.000Z","dependencies_parsed_at":"2025-06-06T18:32:31.381Z","dependency_job_id":"70a70e49-2e2d-4b03-ab92-243ee6d18819","html_url":"https://github.com/salvatorecorvaglia/git-sweep","commit_stats":null,"previous_names":["salvatorecorvaglia/git-sweep"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/salvatorecorvaglia/git-sweep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecorvaglia%2Fgit-sweep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecorvaglia%2Fgit-sweep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecorvaglia%2Fgit-sweep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecorvaglia%2Fgit-sweep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salvatorecorvaglia","download_url":"https://codeload.github.com/salvatorecorvaglia/git-sweep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salvatorecorvaglia%2Fgit-sweep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270976642,"owners_count":24678532,"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-18T02:00:08.743Z","response_time":89,"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","git"],"created_at":"2025-05-08T17:37:21.413Z","updated_at":"2025-08-18T10:11:55.750Z","avatar_url":"https://github.com/salvatorecorvaglia.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Bulk Branch Updater\n\nThis Bash script recursively scans a base directory for Git repositories and updates each local branch that has a tracking upstream branch. It fetches the latest changes and performs **fast-forward-only merges** to ensure the local branches are synchronized with their upstream counterparts.\n\n## Features\n\n- Detects all Git repositories under a given base directory.\n- Skips repositories with uncommitted changes.\n- Automatically fetches updates from all remotes.\n- Updates all branches that have tracking branches, using fast-forward-only merges.\n- Supports a dry-run mode to preview actions without making changes.\n- Gracefully handles detached HEADs and non-fast-forward cases.\n- Exits with non-zero status if any branch could not be fast-forwarded.\n- Portable and tested on macOS, Linux, and WSL environments.\n\n## Requirements\n\n- Bash\n- Git\n\n## Usage\n\n```bash\n./git-pull-all.sh [--dry-run] [--dir \u003cbase-directory\u003e]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalvatorecorvaglia%2Fgit-sweep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalvatorecorvaglia%2Fgit-sweep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalvatorecorvaglia%2Fgit-sweep/lists"}