使用 GitHub 存储库中的更改更新本地存储库

问题描述:

我从 GitHub 本地检查了一个项目,并且该远程存储库已经对其进行了更改.使用最新更改更新我的本地副本的正确命令是什么?

I've got a project checked locally from GitHub, and that remote repository has since had changes made to it. What's the correct command to update my local copy with the latest changes?

大概:

是:git pull origin master

was: git pull origin master

现在:git pull origin main

now: git pull origin main