Skip to main content
  1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. 如何使用 Git
  6. 如何在 Mac 中使用 Git
  7. 复制远程存储库
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

复制远程存储库

对于我们教程中的这个步骤,假设您是另一个团队成员,并且想要把我们在前面步骤中创建的推送到的远程存储库,克隆到另一个目录,这样您就可以在您的本地计算机上处理它。我们将此目录称为tutorial2

单击 Sourcetree 书签窗口左上角的“New…”按钮。或者,您也可以从菜单栏中选择“File” > “New…”。

Start SourceTree

选择“Clone Repository”,然后输入远程存储库 URL、目标路径和新目录的名称,然后单击“Clone”。

Clone into the directory named tutorial2

新克隆的存储库将添加到书签列表中。

Added to the bookmark list.

要验证 Git 是否成功执行了克隆,请在新克隆目录tutorial2sample.txt中查找下面这行字:

Anyone can learn Git with this tutorial and Backlog

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life