dot*_*nix 2 git clone git-clone
我有两个git存储库:
我丢了report.git.我有cloned.git.我想从这个cloned.git克隆其他存储库.这是可能的,但我的问题是我错过了什么?cloned.git和master report.git真的一样吗?
cloned.git仍指向Master report.git.我通过删除.git/config中的选项来改变这一点.这够了吗?
您的cloned.git存储库是report.git的克隆(副本),其状态为report.git,当您克隆或上次从report.git中提取时
你的cloned.git一直是大师,report.git也一直是大师.这是git的美丽.
小智 5
git clone --bare localrepo.git newremoterepo.git
Run Code Online (Sandbox Code Playgroud)
http://git-scm.com/docs/git-clone