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

Project and code management together.

复制远程存储库

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

使用 git clone 命令将远程存储库复制到“tutorial2”目录。

$ git clone https://example.backlog.com/git/BLGGIT/tutorial.git tutorial2
  Cloning into 'tutorial2'...
  Username:
  Password:
  remote: Counting objects: 3, done.
  remote: Total 3 (delta 0), reused 0 (delta 0)
  Unpacking objects: 100% (3/3), done.

要验证 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