Skip to main content
  1. Learn
  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