{"id":17520631,"url":"https://github.com/oxzi/github-orga-sync","last_synced_at":"2026-05-02T14:32:54.382Z","repository":{"id":134034696,"uuid":"310624974","full_name":"oxzi/github-orga-sync","owner":"oxzi","description":"Simple tool to synchronize all repositories from a GitHub organization","archived":false,"fork":false,"pushed_at":"2020-11-06T14:54:37.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-10T07:45:10.774Z","etag":null,"topics":["git","github-classroom"],"latest_commit_sha":null,"homepage":"","language":"Go","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/oxzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/CC0-1.0.txt","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":"2020-11-06T14:50:35.000Z","updated_at":"2021-01-10T16:22:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a63c74db-4b06-489f-af61-7095d0defad3","html_url":"https://github.com/oxzi/github-orga-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fgithub-orga-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fgithub-orga-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fgithub-orga-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxzi%2Fgithub-orga-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxzi","download_url":"https://codeload.github.com/oxzi/github-orga-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246113932,"owners_count":20725546,"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":["git","github-classroom"],"created_at":"2024-10-20T11:24:07.372Z","updated_at":"2026-05-02T14:32:54.202Z","avatar_url":"https://github.com/oxzi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2020 Alvar Penning\n\nSPDX-License-Identifier: GPL-3.0-or-later\n--\u003e\n\n# github-orga-sync\n\n`github-orga-sync` is a simple tool to synchronize all repositories from a GitHub organization.\n\nThe intended workflow is to deal with a GitHub Classroom \"only\" organization.\nNew student repositories will be cloned or updated based on their master branch.\nA feedback can be pushed from a feedback branch afterwards.\n\n\u003e :warning: __This software is quite new and untested! Don't rely on it. Here be dragons.__\n\n\n## Installation\n\nInstall a current [Go](https://golang.org/) version.\n\n```\ngit clone https://github.com/oxzi/github-orga-sync\ncd github-orga-sync\ngo build\n# Put the github-orga-sync binary into your $PATH\n```\n\n\n## Workflow\n\n`github-orga-sync`'s workflow is very similar to that of `git` itself.\nAt first, one initializes the main directory to contain all repositories.\nAfterwards, one pulls all repositories.\nAfter some changes, one pushes back those.\nThe last two steps will be repeated.\n\n### 1. Initialize directory\n\nFirst, we create a new directory `repos`.\nThe configuration file will be opened with our `$EDITOR`.\n\n```\n$ github-orga-sync init repos\n\u003e INFO Directory is prepared                         directory=repos\n\n$ cd repos\n```\n\n### 2. Pull\n\nThe internal `git clone` will be used with the SSH URI.\nTo avoid having to enter the passphrase every time, it is recommended to set up `ssh-agent`.\n\n```\n$ github-orga-sync pull\n\u003e INFO Fetching repositories from GitHub..           branch=master organization=my-github-orga\n\u003e INFO There are 3 repositories in total\n\u003e INFO Created new repository                        repository=ubung-01-testteam\n\u003e INFO Created new repository                        repository=ubung-01-team23\n\u003e INFO Created new repository                        repository=ubung-01-team42\n\u003e INFO Finished pull successfully                    created=3 updated=0\n```\n\n### 3. Push\n\nWe make some changes in our `branch.push` branch (defaults to `feedback`).\nAfterwards, we push them back.\n\nFor this example, we only alter one repository, `ubung-01-testteam`.\n\n```\n$ github-orga-sync push\n\u003e INFO Fetching repositories from GitHub..           branch=master organization=my-github-orga\n\u003e INFO There are 3 repositories in total\n\u003e INFO Pushed updates to remote                      repository=ubung-01-testteam\n\u003e WARN Local repository does not contain branch      branch=feedback repository=ubung-01-team23\n\u003e WARN Local repository does not contain branch      branch=feedback repository=ubung-01-team42\n\u003e INFO Finished push successfully                    updated=1\n```\n\n\n## License\n\nGNU GPLv3 or later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxzi%2Fgithub-orga-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxzi%2Fgithub-orga-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxzi%2Fgithub-orga-sync/lists"}