Skip to main content
  1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. 如何使用 Git
  6. 如何在 Windows 中使用 Git
  7. 从存储库拉取
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

从存储库拉取

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

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

要执行拉取,请右键单击“tutorial”目录,并从右键单击菜单中选择“Pull”。

Click pull from the right-click menu

单击“OK”。

Click OK button

拉取将启动。在完成后,单击“Close”结束。

When the next screen is displayed, the pull will begin.

从右键单击菜单中单击“TortoiseGit” > “Show log”。请注意,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