Git pull 命令
更新时间: 2019-07-13 17:17
git-pull - Fetch from and integrate with another repository or a local branch
语法
git pull [options] [<repository> [<refspec>...]]
参数
-q, --quiet
This is passed to both underlying git-fetch to squelch reporting of during transfer, and underlying git-merge to squelch output
during merging.
-v, --verbose
Pass --verbose to git-fetch and git-merge.
--[no-]recurse-submodules[=yes|on-demand|no]
This option controls if new commits of all populated submodules should be fetched and updated, too (see git-config(1) and
gitmodules(5)).
If the checkout is done via rebase, local submodule commits are rebased as well.
If the update is done via merge, the submodule conflicts are resolved and checked out.
使用示例
# 取回远程仓库的变化,并与本地分支合并
$ git pull [remote] [branch]
查看更多 git pull
命令的使用方法,可以使用命令:
git help pull