Files
tldr/pages.zh/common/git-pull.md

16 lines
386 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git pull
> 从远程仓库获取分支并将其合并到本地仓库。
> 更多信息:<https://git-scm.com/docs/git-pull>。
- 从默认远程仓库下载更改并合并:
`git pull`
- 从默认远程仓库下载更改并使用快进:
`git pull --rebase`
- 从指定的远程仓库和分支下载更改然后将其合并到HEAD
`git pull {{remote_name}} {{branch}}`