wyyy721 发表于 2018-1-15 19:18:42

git clone 一些简单笔记

usage: git clone [--] <repo> [<dir>]  

  

-v, --verbose         be more verbose  

-q, --quiet         be more quiet  

--progress            force progress reporting  

-n, --no-checkout   don't create a checkout  
--bare                create a bare repository
  
--mirror            create a mirror repository (implies bare)
  
-l, --local         to clone from a local repository
  
--no-hardlinks      don't use local hardlinks, always copy
  
-s, --shared          setup as shared repository
  
--recursive         initialize submodules in the clone
  
--recurse-submodulesinitialize submodules in the clone
  
--template <template-directory>
  
directory from which templates will be used
  
--reference <repo>    reference repository
  
-o, --origin <name>   use <name> instead of 'origin' to track upstream
  
-b, --branch <branch>
  
checkout <branch> instead of the remote's HEAD
  
-u, --upload-pack <path>
  
path to git-upload-pack on the remote
  
--depth <depth>       create a shallow clone of that depth
  
--separate-git-dir <gitdir>
  
separate git dir from working tree
  
-c, --config <key=value>
  
set config inside the new repository
页: [1]
查看完整版本: git clone 一些简单笔记