Sync
约 1 分钟阅读
Git Sync
git clone --mirror https://primary_repo_url/primary_repo.git
cd primary_repo.git
git remote add --mirror=fetch secondary https://secondary_repo_url/secondary_repo.git
git fetch origin
git push secondary --all # 同步
# 周期同步流程
git fetch origin
git push secondary --all
# 反向同步
git fetch secondary
git push origin- www.opentechguides.com/how-to/article/git/177/git-sync-repos.html
- kubernetes/git-syncGitHubkubernetes/git-sync
- 定时同步到本地
- 单仓库,单 branch
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub1 条
- kubernetes/git-syncgithub.com/kubernetes/git-sync
其他外链1 条
- www.opentechguides.com/how-to/article/git/177/git-sync-repos.htmlwww.opentechguides.com/how-to/article/git/177/git-sync-repos.html