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.

从存储库拉取

现在让我们把最新的修改 (我们刚才在前一个步骤推送的修改) 从远程存储库拉取到我们的本地存储库 (即tutorial目录)。

返回书签列表视图,双击tutorial存储库。

既然我们的远程存储库与tutorial2中的更改是最新的,让我们拉取更改,并同步我们的初始存储库目录tutorial

要执行拉取,请单击工具栏上的“Pull”图标。

Click Pull button on the toolbar

在下一个屏幕上不需要进行任何更改,因此单击“OK”。

Click OK button

请注意,main已向前移动到与origin/main相同的级别。这意味着我们的tutorial本地存储库现在与远程存储库的最新更改保持同步。

The origin/main have advanced to the same position

打开sample.txt文件,并检查内容。

Anyone can learn Git with this tutorial and Backlog
add: Register a change in an index

您应该看到add: Register a change in an index已添加到内容中。

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life