1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages.zh/common/git-pull.md
Naiq ca11ff6026
git-*: add and update Chinese translations (#15940)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-03-26 00:10:53 +02:00

508 B

git pull

从远程仓库获取分支,并将其合并到本地仓库。 更多信息:https://git-scm.com/docs/git-pull.

  • 从默认的远程仓库拉取代码并执行合并:

git pull

  • 从默认的远程仓库拉取代码并采用变基策略实现合并(将你的本地提交“移植”到远程获取的分支上):

git pull {{[-r|--rebase]}}

  • 从给定的远程仓库和分支中拉取代码,并合并到本地对应分支:

git pull {{远程仓库名}} {{分支名}}