{"id":18733538,"url":"https://github.com/insightsengineering/git-synchronizer","last_synced_at":"2025-10-11T10:32:42.039Z","repository":{"id":218099347,"uuid":"741508218","full_name":"insightsengineering/git-synchronizer","owner":"insightsengineering","description":"A tool to synchronize git repositories","archived":false,"fork":false,"pushed_at":"2025-09-30T11:34:01.000Z","size":122,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T11:41:40.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://insightsengineering.github.io/git-synchronizer/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/insightsengineering.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://pharmaverse.org"]}},"created_at":"2024-01-10T14:42:01.000Z","updated_at":"2025-06-10T21:52:43.000Z","dependencies_parsed_at":"2024-04-24T09:44:49.178Z","dependency_job_id":"5a9d9901-01bd-4ff0-ac66-0459ab6c8b83","html_url":"https://github.com/insightsengineering/git-synchronizer","commit_stats":null,"previous_names":["insightsengineering/git-synchronizer"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/insightsengineering/git-synchronizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fgit-synchronizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fgit-synchronizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fgit-synchronizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fgit-synchronizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insightsengineering","download_url":"https://codeload.github.com/insightsengineering/git-synchronizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fgit-synchronizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006846,"owners_count":26084206,"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-10-11T02:00:06.511Z","response_time":55,"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-07T15:10:20.364Z","updated_at":"2025-10-11T10:32:42.020Z","avatar_url":"https://github.com/insightsengineering.png","language":"Go","funding_links":["https://pharmaverse.org"],"categories":[],"sub_categories":[],"readme":"# git-synchronizer\n\n[![build](https://github.com/insightsengineering/git-synchronizer/actions/workflows/test.yml/badge.svg)](https://github.com/insightsengineering/git-synchronizer/actions/workflows/test.yml)\n\n`git-synchronizer` allows you to mirror a collection of `git` repositories from one location to another.\nFor each source repository, you can set a destination repository to which the source should be mirrored (see example [configuration file](#configuration-file)).\nSynchronization between all source-destination repository pairs in performed concurrently.\n\n`git-synchronizer` will:\n* push all branches and tags from source to destination repository,\n* remove branches and tags from the destination repository which are no longer present in source repository.\n\n## Installing\n\nSimply download the project for your distribution from the [releases](https://github.com/insightsengineering/git-synchronizer/releases) page.\n`git-synchronizer` is distributed as a single binary file and does not require any additional system requirements.\n\nAlternatively, if you have a Go environment, you can simply install `git-synchronizer` by running:\n\n```shell\ngo install github.com/insightsengineering/git-synchronizer@latest\n```\n\n## Usage\n\n`git-synchronizer` is a command line utility, so after installing the binary in your `PATH`, simply run the following command to view its capabilities:\n\n```bash\ngit-synchronizer --help\n```\n\n## Configuration file\n\nBy default `git-synchronizer` attempts to read `~/.git-synchronizer`, `~/.git-synchronizer.yaml` and `~/.git-synchronizer.yml` configuration files.\nIf any of these files exist, `git-synchronizer` uses options defined there, unless they are overridden by command line flags.\n\nYou can also specify custom path to configuration file with `--config \u003cyour-configuration-file\u003e.yml` command line flag.\n\nExample contents of configuration file:\n\n```yaml\n# Default authentication methods to use for source and destination repositories (optional).\ndefaults:\n  source:\n    auth:\n      method: token\n      # Name of environment variable storing the Personal Access Token\n      # with permissions to read source repositories.\n      token_name: GITHUB_TOKEN\n  destination:\n    auth:\n      method: token\n      # Name of environment variable storing the Personal Access Token\n      # with permissions to push to destination repositories.\n      token_name: GITLAB_TOKEN\n\n# List of repository pairs to be synchronized.\nrepositories:\n\n  # Repositories using default tokens.\n  - source:\n      repo: https://github.example.com/org-1/repo-1\n    destination:\n      repo: https://gitlab.example.com/org-5/repo-1\n\n  - source:\n      repo: https://github.example.com/org-1/repo-2\n      # Overriding token for source repository.\n      auth:\n        method: token\n        token_name: GITHUB_TOKEN_EXTRA\n    destination:\n      repo: https://gitlab.example.com/org-5/repo-2\n\n  - source:\n      repo: https://github.example.com/org-1/repo-3\n    destination:\n      repo: https://gitlab.example.com/org-5/repo-3\n      # Overriding token for destination repository.\n      auth:\n        method: token\n        token_name: GITLAB_TOKEN_EXTRA\n```\n\n## Environment variables\n\n`git-synchronizer` reads environment variables with `GITSYNCHRONIZER_` prefix and tries to match them with CLI flags.\nFor example, setting the following variables will override the respective values from configuration file:\n`GITSYNCHRONIZER_LOGLEVEL` etc.\n\nThe order of precedence is:\n\nCLI flag → environment variable → configuration file → default value.\n\nTo check the available names of environment variables, please run `git-synchronizer --help`.\n\nPlease note that providing the list of repositories to be synchronized with a CLI flag is not supported.\n\n## Development\n\nThis project is built with the [Go programming language](https://go.dev/).\n\n### Development Environment\n\nIt is recommended to use Go 1.21+ for developing this project.\nThis project uses a pre-commit configuration and it is recommended to [install and use pre-commit](https://pre-commit.com/#install) when you are developing this project.\n\n### Common Commands\n\nRun `make help` to list all related targets that will aid local development.\n\n## License\n\n`git-synchronizer` is licensed under the Apache 2.0 license. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Fgit-synchronizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsightsengineering%2Fgit-synchronizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Fgit-synchronizer/lists"}