码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-12-31 16:01:15      阅读:369      评论:0      收藏:0      [点我收藏+]

标签:

命令格式

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

 

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

标签:

原文地址:http://www.cnblogs.com/huey/p/5091969.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!