Editing Git clone

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
 
<code>[[git]] clone</code>
 
<code>[[git]] clone</code>
 
* Doc: https://git-scm.com/docs/git-clone
 
* Doc: https://git-scm.com/docs/git-clone
 
* [[git clone --help]]
 
      git-clone - Clone a repository into a new directory
 
 
SYNOPSIS
 
      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] [--[no-]reject-shallow]
 
                [--filter=<filter> [--also-filter-submodules]] [--] <repository>
 
                [<directory>]
 
  
 
== Examples ==
 
== Examples ==
Line 24: Line 10:
  
 
* <code>git clone [[--depth]]=1 https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki</code>
 
* <code>git clone [[--depth]]=1 https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki</code>
* <code>[[GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone --verbose]] https://github.com/zabbix/zabbix-docker.git</code>
+
* <code>[[GIT_TRACE]]=1 [[GIT_CURL_VERBOSE]]=1 [[git clone --verbose]] https://github.com/zabbix/zabbix-docker.git</code>
* <code>[[git clone -c]] http.[[sslVerify]]=false</code>
+
* <code>git clone -c http.[[sslVerify]]=false</code>
** <code>[[--config]]</code>
 
 
* <code>[[git clone --bare]]</code>
 
* <code>[[git clone --bare]]</code>
  
Line 33: Line 18:
  
 
== Errors executing <code>[[git clone]]</code> ==
 
== Errors executing <code>[[git clone]]</code> ==
 
=== [[Permission denied]] ===
 
 
  [[git clone]] ssh://[email protected]:2224/username/test-username.git
 
  [[git clone]] ssh://[email protected]:2224/username/test-username.git
 
  Cloning into 'test-username'...
 
  Cloning into 'test-username'...
Line 46: Line 29:
 
  [[Please make sure you have the correct access rights and the repository exists]].
 
  [[Please make sure you have the correct access rights and the repository exists]].
  
=== [[You appear to have cloned an empty repository]] ===
 
 
  Cloning into 'test'...
 
  Cloning into 'test'...
 
  warning: You appear to have cloned an empty repository.
 
  warning: You appear to have cloned an empty repository.
  
=== [[fatal: protocol error]]: bad pack header ===
 
 
  error: git upload-pack: git-pack-objects died with error.
 
  error: git upload-pack: git-pack-objects died with error.
 
  fatal: [[git upload-pack]]: aborting due to possible repository corruption on the remote side.
 
  fatal: [[git upload-pack]]: aborting due to possible repository corruption on the remote side.
Line 59: Line 40:
  
  
=== [[remote: Repository not found.]] ===
+
[[remote: Repository not found.]]
 +
 
  
=== git clone -c http.sslVerify=false ===
 
  
 
  [[GIT_TRACE]]=1 [[GIT_CURL_VERBOSE]]=1 git clone --verbose https://gitlab.youdomain.com/project1/app.git
 
  [[GIT_TRACE]]=1 [[GIT_CURL_VERBOSE]]=1 git clone --verbose https://gitlab.youdomain.com/project1/app.git
Line 90: Line 71:
 
  Use: git clone -c http.sslVerify=false
 
  Use: git clone -c http.sslVerify=false
  
=== Missing [[xcrun]] ===
 
 
  git clone
 
  git clone
 
  [[xcrun]]: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:  
 
  [[xcrun]]: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:  

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: