{"id":21117103,"url":"https://github.com/powershelllibrary/git-sync","last_synced_at":"2025-06-21T04:43:12.403Z","repository":{"id":197674556,"uuid":"123828385","full_name":"PowerShellLibrary/git-sync","owner":"PowerShellLibrary","description":"Simply push from git repo from one remote to other","archived":false,"fork":false,"pushed_at":"2025-02-01T21:32:23.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T10:43:38.683Z","etag":null,"topics":["backup","git","github","powershell","powershell-script","repositories","repository","repository-management","repository-tools","repository-utilities","ssh-agent","ssh-key","sync"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShellLibrary.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":"2018-03-04T20:57:26.000Z","updated_at":"2025-02-01T21:32:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"130c0d36-45f8-4a48-b779-ce446f6f059b","html_url":"https://github.com/PowerShellLibrary/git-sync","commit_stats":null,"previous_names":["powershelllibrary/git-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellLibrary%2Fgit-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellLibrary%2Fgit-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellLibrary%2Fgit-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellLibrary%2Fgit-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShellLibrary","download_url":"https://codeload.github.com/PowerShellLibrary/git-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellLibrary%2Fgit-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258701951,"owners_count":22743728,"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":["backup","git","github","powershell","powershell-script","repositories","repository","repository-management","repository-tools","repository-utilities","ssh-agent","ssh-key","sync"],"created_at":"2024-11-20T02:38:24.677Z","updated_at":"2025-06-21T04:43:07.387Z","avatar_url":"https://github.com/PowerShellLibrary.png","language":"PowerShell","readme":"# git-sync\nGit-Sync helps you sync your repositories across multiple remotes.\n\nThe main goal of this script is to create enough redundancy so even if a single provider will fail you can still access your code using alternative hosting companies.\n\n![how to](https://user-images.githubusercontent.com/6848691/77835310-cc29d180-714b-11ea-8a69-bd60ee6786cf.gif)\n\n\n## How to use\n### 1. Generate SSH key\n```powershell\ncd c:\\Users\\[USER_NAME]\\.ssh\\\nssh-keygen.exe\nssh-add.exe id_rsa\nnotepad.exe id_rsa.pub\n```\n\nIn case you are using SSH agent delivered with Windows make sure that you enabled the **ssh-agent** service\n\nTo solve this problem\n\u003e Error connecting to agent: No such file or directory\n\nfollow instructions below\n```powershell\nSet-Service -Name ssh-agent -StartupType Manual\nStart-Service ssh-agent\nGet-Service ssh*\n```\n### 2. Add SSH keys to your alternate hosting websites\nGo to you repository hosting website and add key generated in previous step.\n\nHere are some examples:\n\n- `https://[USER_NAME].visualstudio.com/_details/security/keys`\n- `https://bitbucket.org/account/user/[USER_NAME]/ssh-keys/`\n- `https://github.com/settings/keys`\n\n### 3. Create configuration\n- Rename `config-example.json` into `config.json`\n- Add your configuration\n\n### 4. Run script\n\n```powershell\n.\\sync.ps1\n```\n\n## License\n[MIT](LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershelllibrary%2Fgit-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershelllibrary%2Fgit-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershelllibrary%2Fgit-sync/lists"}