{"id":20603688,"url":"https://github.com/patrickm663/git-sync","last_synced_at":"2026-03-19T16:40:28.480Z","repository":{"id":153371763,"uuid":"625589358","full_name":"patrickm663/git-sync","owner":"patrickm663","description":"A small utility script to sync local Git repos with remote","archived":false,"fork":false,"pushed_at":"2023-07-24T20:01:21.000Z","size":1524,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T16:48:46.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickm663.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-09T15:25:08.000Z","updated_at":"2023-07-26T17:01:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"5be8749d-966c-4c1c-92c1-29720466eaa0","html_url":"https://github.com/patrickm663/git-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrickm663/git-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Fgit-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Fgit-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Fgit-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Fgit-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickm663","download_url":"https://codeload.github.com/patrickm663/git-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickm663%2Fgit-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30292396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","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":[],"created_at":"2024-11-16T09:18:09.806Z","updated_at":"2026-03-09T11:31:30.993Z","avatar_url":"https://github.com/patrickm663.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n# git-sync\n_**WIP: A D implementation of the Bash script is being tested.**_\n\nA small utility script to sync local Git repos with remote.\n\nIt works by looping over the user's `home/` directory for folders containing a `.git` sub-directory. Users are given an option to check the local repo against remote and, only if the user wants, runs `git pull`.\n\nBy using `git remote update; git status -uno`, the local repo is checked against remote _before_ running `git pull`. This is safer than running `git pull` outright over each repo, since overwriting local repos  may have unintended effects. \n\n## Prerequistes\n1. Environment to run Bash scripts\n2. Git, grep, and sed installed (should be available on most UNIX and GNU/Linux devices)\n\n## How to Use\nThe script can be run as follows:\n```bash\ncd src/\nbash git-sync.sh\n```\nWhen prompted, enter `y` or `n` at each repository to proceed with checking for updates (non-breaking check).\n\nIf updates are available, enter `y` again to pull changes from remote.\n\n## TODO\n- [ ] Add further error catches and print helpful error messages\n- [ ] Add a small `man` page\n- [ ] Implement further tests on different environments\n\n## License\nLicensed under BSD 3-Clause.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickm663%2Fgit-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickm663%2Fgit-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickm663%2Fgit-sync/lists"}