1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages.zh/common/git-pull.md
Managor fe4c26ba2e
pages*/common/*: add option placeholders to translations part 2 (#15901)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-14 12:48:28 +05:30

16 lines
532 B
Markdown

# git pull
> 从远程代码库拉取分支,并将其合并到本地代码库。
> 更多信息:<https://git-scm.com/docs/git-pull>.
- 从默认的远程分支中拉取代码并执行合并:
`git pull`
- 使用快进功能(快进到含义为:先清空暂存区,再执行合并,最后恢复暂存区),从默认的远程分支拉取代码并执行合并:
`git pull {{[-r|--rebase]}}`
- 从给定的分支中拉取代码,并执行合并到对应分支:
`git pull {{远程分支名}} {{本地分支名}}`