本篇文章给大家带来了关于git的相关知识,其中主要介绍了git init和git clone获取git仓库的相关问题,包括了git clone 从已有的Git存储数据库中克隆仓库到本地目录等相关内容,希望对大家有帮助。
|
本篇文章给大家带来了关于Git的相关知识,其中主要介绍了git init和git clone获取git仓库的相关问题,包括了git clone 从已有的Git存储数据库中克隆仓库到本地目录等相关内容,希望对大家有帮助。
推荐学习:《Git教程》 使用git init和git clone获取git仓库通常获取git仓库有两种方式:
1 git init 在本地目录上创建Git仓库git init [-q | --quiet] [--bare] [--template=<template_directory>]
[--separate-git-dir <git dir>]
[--shared[=<permissions>]] [directory]该命令创建一个空的Git存储数据库,基本上会在
2 git clone 从已有的Git存储数据库中克隆仓库到本地目录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] [--no-tags]
[--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules]
[--[no-]remote-submodules] [--jobs <n>] [--sparse] [--] <repository>
[<directory>]克隆一个仓库到新被创建的目录中,为克隆的Git存储库中每个分支创建远程跟踪分支(通过
推荐学习:《Git教程》 以上就是实例详解git init和git clone获取git仓库的详细内容,更多请关注模板之家(www.mb5.com.cn)其它相关文章! |
