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 1: | Line 1: | ||
− | + | * https://git-scm.com/docs/git-clone | |
− | |||
− | * | ||
− | + | [[git]] clone -vv https://github.com/zabbix/zabbix-docker.git | |
− | + | Cloning into 'zabbix-docker'... | |
− | + | git clone ssh://git@gitlab.domain.com:2224/username/test.git | |
− | + | Cloning into 'test'... | |
− | + | warning: You appear to have cloned an empty repository. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | git clone [[--depth]]=1 https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki | |
− | |||
− | |||
− | |||
− | |||
− | + | [[GIT_TRACE]]=1 [[GIT_CURL_VERBOSE]]=1 git clone --verbose https://github.com/zabbix/zabbix-docker.git | |
− | |||
− | |||
− | |||
− | |||
+ | git clone -c http.[[sslVerify]]=false | ||
− | |||
− | |||
− | + | error: git upload-pack: git-pack-objects died with error. | |
+ | fatal: [[git upload-pack]]: aborting due to possible repository corruption on the remote side. | ||
+ | remote: aborting due to possible repository corruption on the remote side. | ||
+ | fatal: protocol error: bad pack header | ||
+ | Solution: review memory usage on git server | ||
+ | |||
+ | |||
+ | == With errors == | ||
+ | |||
[[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 41: | Line 31: | ||
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes | Are you sure you want to continue connecting (yes/no/[fingerprint])? yes | ||
Warning: Permanently added '[10.10.10.5]:2224' (ECDSA) to the list of known hosts. | Warning: Permanently added '[10.10.10.5]:2224' (ECDSA) to the list of known hosts. | ||
− | + | [email protected]: Permission denied (publickey). | |
fatal: Could not read from remote repository. | fatal: Could not read from remote repository. | ||
− | + | Please make sure you have the correct access rights | |
+ | and the repository exists. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone --verbose https://gitlab.youdomain.com/project1/app.git | |
− | |||
− | |||
− | |||
− | |||
15:31:11.872513 exec-cmd.c:139 trace: resolved executable path from Darwin stack: | 15:31:11.872513 exec-cmd.c:139 trace: resolved executable path from Darwin stack: | ||
− | + | /Library/Developer/CommandLineTools/usr/bin/git | |
15:31:11.873411 exec-cmd.c:236 trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/bin | 15:31:11.873411 exec-cmd.c:236 trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/bin | ||
15:31:11.873488 git.c:418 trace: built-in: git clone --verbose https://gitlab.youdomain.com/project1/app.git | 15:31:11.873488 git.c:418 trace: built-in: git clone --verbose https://gitlab.youdomain.com/project1/app.git | ||
Line 86: | Line 62: | ||
* stopped the pause stream! | * stopped the pause stream! | ||
* Closing connection 0 | * Closing connection 0 | ||
− | + | fatal: unable to access 'https://gitlab.youdomain.com/project1/app.git/': '''SSL certificate problem: [[self signed certificate]]''' | |
Use: git clone -c http.sslVerify=false | Use: git clone -c http.sslVerify=false | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
− | * | + | * <code>[[git fetch]]</code>, <code>[[git pull]]</code> |
* [[Clone git public repositories]] | * [[Clone git public repositories]] | ||
* <code>[[git config --global]]</code> | * <code>[[git config --global]]</code> | ||
* <code>[[git add]]</code> | * <code>[[git add]]</code> | ||
− | * | + | * [[git checkout]] |
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* {{git}} | * {{git}} | ||
+ | |||
[[Category:Git]] | [[Category:Git]] |
Advertising: