mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
532 B
532 B
git pull
从远程代码库拉取分支,并将其合并到本地代码库。 更多信息:https://git-scm.com/docs/git-pull.
- 从默认的远程分支中拉取代码并执行合并:
git pull
- 使用快进功能(快进到含义为:先清空暂存区,再执行合并,最后恢复暂存区),从默认的远程分支拉取代码并执行合并:
git pull {{[-r|--rebase]}}
- 从给定的分支中拉取代码,并执行合并到对应分支:
git pull {{远程分支名}} {{本地分支名}}