Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
すべてのオンサイト開発者が使用するGitLabを実行しているローカルサーバーがあります。また、リモート開発者向けにgithubアカウントを設定しています。githubとgitlabの同期を維持する方法が必要です。これを行うためのツール/手順/構成を知っている人はいますか?ありがとう
ソースリポジトリでフックを更新後に投稿できます。
ステップ-ソースからキーを交換します->dest。
更新後のフックで次のような行を追加します
git push --mirror git@dest.example.com/reponame.git
ソース側のリポジトリ名が「reponame」であると仮定すると、リポジトリ名はsource.example.comとdest.example.comで一貫しています。