Git CMD - clone: Clone a repository into a new directory

命令格式

git clone [--template=<template_directory>]
      [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
      [-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
      [--dissociate] [--separate-git-dir <git dir>]
      [--depth <depth>] [--[no-]single-branch]
      [--recursive | --recurse-submodules] [--] <repository>
      [<directory>]

 

实例

a) 从远程仓库克隆

[huey@huey-K42JE git]$ git clone git@github.com:huey2672/hello_git.git
Initialized empty Git repository in /home/ucm/git/hello_git/.git/
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.

 

更多

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

posted on 2015-12-30 13:59  huey2672  阅读(596)  评论(0编辑  收藏  举报