复制远程存储库
对于我们教程中的这个步骤,假设您是另一个团队成员,并且想要把我们在前面步骤中创建的和推送到的远程存储库,克隆到另一个目录,这样您就可以在您的本地计算机上处理它。我们将此目录称为tutorial2
。
单击 Sourcetree 书签窗口左上角的“New…”按钮。或者,您也可以从菜单栏中选择“File” > “New…”。
![Start SourceTree](/static/391c4f78517ec5d95291cecc09da1635/5a190/01.png)
选择“Clone Repository”,然后输入远程存储库 URL、目标路径和新目录的名称,然后单击“Clone”。
![Clone into the directory named tutorial2](/static/005f12a9024fad3f710167fbfbbbeb9c/5a190/02.png)
新克隆的存储库将添加到书签列表中。
![Added to the bookmark list.](/static/662f09f74100e99fb0d71ced5c1bd229/5a190/03.png)
要验证 Git 是否成功执行了克隆,请在新克隆目录tutorial2
的sample.txt
中查找下面这行字:
Anyone can learn Git with this tutorial and Backlog