Difference between revisions of "Git clone"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 1: | Line 1: | ||
* https://git-scm.com/docs/git-clone | * https://git-scm.com/docs/git-clone | ||
− | [[git | + | [[git clone -vv]] https://github.com/zabbix/zabbix-docker.git |
Cloning into 'zabbix-docker'... | Cloning into 'zabbix-docker'... | ||
Revision as of 09:11, 20 August 2021
git clone -vv https://github.com/zabbix/zabbix-docker.git Cloning into 'zabbix-docker'...
git clone ssh://[email protected]: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
With errors
git clone ssh://[email protected]:2224/username/test-username.git Cloning into 'test-username'... The authenticity of host '[10.10.10.5]:2224 ([10.10.10.5]:2224)' can't be established. ECDSA key fingerprint is SHA256:WMfMtq7QBOrI/388RFgiWv8FJwV36qFrOtjvXJ7RZY4. 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. [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
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
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: /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.873488 git.c:418 trace: built-in: git clone --verbose https://gitlab.youdomain.com/project1/app.git Cloning into 'app'... 15:31:11.896610 run-command.c:643 trace: run_command: git-remote-https origin https://gitlab.youdomain.com/project1/app.git 15:31:11.909999 exec-cmd.c:139 trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/libexec/git-core/git-remote-https 15:31:11.911055 exec-cmd.c:236 trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/libexec/git-core * Couldn't find host gitlab.youdomain.com in the .netrc file; using defaults * Trying 10.10.110.xx... * TCP_NODELAY set * Connected to gitlab.youdomain.com (10.10.xx.xx) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /etc/ssl/cert.pem CApath: none * SSL certificate problem: self signed certificate * stopped the pause stream! * 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
Related terms
git fetch
,git pull
,git clone
- Clone git public repositories
git config --global
git add
git checkout
See also
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: