Git CMD - fetch: Download objects and refs from another repository

命令格式

git fetch [<options>] [<repository> [<refspec>…​]]

git fetch [<options>] <group>

git fetch --multiple [<options>] [(<repository> | <group>)…​]

git fetch --all [<options>]

 

命令参数

--dry-run
  不执行任何操作,只显示将会发生什么。

-v, --verbose
  详情模式。

 

实例

a) 下载远程仓库的所有分支到本地,但不与本地仓库合并。

$ git fetch origin

 

更多

http://git-scm.com/docs/git-fetch

 

posted on 2015-12-31 15:51  huey2672  阅读(281)  评论(0编辑  收藏  举报