跳至正文
Wener Notes

Sync

约 1 分钟阅读

Git Sync

bash
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

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub1 条
其他外链1 条
最近更新commit 00ddd72编辑