为什么 BitBucket 和 GIT 都需要 运行 "clone"?
Why BitBucket and GIT both need to run "clone"?
如中所述
, 要克隆, 有两个步骤, 首先在 BitBucket 中, 然后在 GIT:
On the left side of bitbucket screen there is a vertical column with
buttons. The second button from the top is "CLONE" button . Press on
this button .You will get HTTP address .
Copy this address and use in git in regular way :
git clone <HTTP address of repo>
我在这里很困惑,为什么要克隆两次?
我的理解是,GIT是客户端工具,BitBucket是服务器端存储所有存储库信息作为远程存储库。那么,一旦“克隆”在客户端(GIT)中为运行,服务器端(BitBucket)是否应该相应地克隆?
请赐教,谢谢
git clone
命令获取 BitBucket 中的存储库并将其下载到您的计算机。 BitBucket 无法自行克隆它,因此当您单击按钮时,您只是获取 git
的地址以从 BitBucket 下载它。
如
On the left side of bitbucket screen there is a vertical column with buttons. The second button from the top is "CLONE" button . Press on this button .You will get HTTP address .
Copy this address and use in git in regular way :
git clone <HTTP address of repo>
我在这里很困惑,为什么要克隆两次?
我的理解是,GIT是客户端工具,BitBucket是服务器端存储所有存储库信息作为远程存储库。那么,一旦“克隆”在客户端(GIT)中为运行,服务器端(BitBucket)是否应该相应地克隆?
请赐教,谢谢
git clone
命令获取 BitBucket 中的存储库并将其下载到您的计算机。 BitBucket 无法自行克隆它,因此当您单击按钮时,您只是获取 git
的地址以从 BitBucket 下载它。