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
优秀网站设计

优秀网站设计

林奇 (Patrick J.Lynch)、霍顿 (Sarah Horton) / 机械工业出版社 / 2012-10-1 / 69.00元

优秀网站设计:打造有吸引力的网站(原书第3版),ISBN:9787111399599,作者:(美)Patrick J. Lynch Sarah Horton 著,李静等译一起来看看 《优秀网站设计》 这本书的介绍吧!

随机密码生成器

随机密码生成器

多种字符组合密码

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

Markdown 在线编辑器

Markdown 在线编辑器

Markdown 在线编辑器