当前位置:   article > 正文

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

git clone cmd

命令格式

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

转载于:https://www.cnblogs.com/huey/p/5088630.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/450317
推荐阅读
相关标签
  

闽ICP备14008679号