【发布时间】:2014-08-18 16:08:45
【问题描述】:
是否可以将 git 裸仓库克隆为新的裸仓库?例如:
- git init --bare mainRepo.git
然后在远程服务器中:
- git clone --bare xxx@server:/path/mainRepo.git repoReplica.git
然后使用 cron 作业将更改从 repoReplica.git 发送到 mainRepo.git,这样我就可以让 2 个团队工作,一个直接使用 mainRepo.git,第二个使用 repoReplica.git
有可能吗?以及如何?
【问题讨论】: