由于原因"'origin' does not appear to be a git repository",存储库初始化失败



我尝试通过以下步骤获得repo,但失败了。我拥有"https://xxxx/xxxx/manifest.git".怎么了?

命令:mkdir t

cd t

repo—跟踪init-uhttps://xxxx/xxxx/repo_manifest.git

Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
... A new repo command ( 1.26) is available.
... You should upgrade soon:
cp /home/xxxx/t/.repo/repo/repo /usr/bin/repo
: parsing /home/xxxx/.gitconfig
Get https://xxxx/xxxx/repo_manifest.git
: export GIT_DIR=/home/xxxx/t/.repo/manifests.git
: git init 1>| 2>|
: git config --file /home/xxxx/t/.repo/manifests.git/config --null --list 1>| 2>|
: git config --file /home/xxxx/t/.repo/manifests.git/config --replace-all filter.lfs.smudge git-lfs smudge --skip -- %f 1>| 2>|
: git config --file /home/xxxx/t/.repo/manifests.git/config --replace-all filter.lfs.process git-lfs filter-process --skip 1>| 2>|
: git config --file /home/xxxx/t/.repo/manifests.git/config --replace-all remote.origin.url https://xxxx/xxxx/repo_manifest.git 1>| 2>|
: git config --file /home/xxxx/t/.repo/manifests.git/config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/* 1>| 2>|
curl --fail --output /home/xxxx/t/.repo/manifests.git/clone.bundle.tmp --netrc --location https://xxxx/xxxx/repo_manifest.git/clone.bundle
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 401 Unauthorized
Server does not provide clone.bundle; ignoring.
: git fetch --progress origin --tags +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/* +refs/heads/master:refs/remotes/origin/master 1>| 2>|
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
: git fetch --progress origin --tags +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/* +refs/heads/master:refs/remotes/origin/master 1>| 2>|
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
: git pack-refs --all --prune 1>| 2>|
fatal: cannot obtain manifest https://xxxx/xxxx/repo_manifest.git

删除~/.gitconfig,并按照"repo-init"显示的提示配置帐户。它有效。

相关内容

最新更新