索引:

目录索引

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

参看代码 GitHub:

git.txt

一、示例:

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

二、说明:

  1."clone" 部分

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

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

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

    这部分是远端仓库的地址(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 周六

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄