索引:
參看代碼 GitHub:
一、示例:
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 周六