Git - git clone - 将远端仓库克隆拷贝到本地

索引:html

目录索引git

参看代码 GitHub:github

git.txtspa

1、示例:code

1 git clone https://github.com/liumeng0403/lm.solution.git

2、说明:htm

  1."clone" 部分blog

    该部分指明是对远端已存在仓库的克隆动做,远端仓库被克隆到本地后,在本地就是一个git仓库,索引

    而且这个git仓库自动默认追踪克隆过来的远端仓库,如 local:dev-->remote:dev、local:master-->remote:master 等等。rem

  2."https://github.com/liumeng0403/lm.solution.git" 部分get

    这部分是远端仓库的地址(URI) ,可根据实际状况替换为本身项目的远端仓库地址。

  3.语法

    git clone [--template=<template_directory>]

        [-l]

        [-s]

        [--no-hardlinks]

        [-q]

        [-n]

        [--bare]

        [--mirror]

        [-o <name>]

        [-b <name>]

        [-u <upload-pack>]

        [--reference <repository>]

        [--separate-git-dir <git dir>]

        [--depth <depth>]

        [--[no-]single-branch]

        [--recursive|--recurse-submodules]

        [--]

        <repository>

        [<directory>] 

     上面是一个完整的 git clone 语法语句,只有 “<repository>” 项部分是必须项,语法较为简单,可自行谷歌查看每项具体含义。

 

 

 

 

                                         蒙

                                    2018-06-09 00:22 周六

相关文章
相关标签/搜索