【发布时间】:2020-08-27 01:29:08
【问题描述】:
我是私人 github 存储库的管理员。从今天早上开始,当我尝试克隆那个 repo 时,我得到:
git clone https://github.com/myblabla/blabla.git
Cloning into 'blabla'...
Missing or invalid credentials.
Error: connect ENOENT /run/user/1000/vscode-git-fa9d1b661a.sock
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'connect',
address: '/run/user/1000/vscode-git-fa9d1b661a.sock'
}
Missing or invalid credentials.
Error: connect ENOENT /run/user/1000/vscode-git-fa9d1b661a.sock
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'connect',
address: '/run/user/1000/vscode-git-fa9d1b661a.sock'
}
remote: Repository not found.
fatal: Authentication failed for
我以前从未有过。解决方法是什么?
当我这样做时:
ssh -T git@github.com
我明白了:
git@github.com: Permission denied (publickey).
【问题讨论】:
-
字面意思是提供(或不提供)的 git 凭据无效。这可能会有所帮助:shellhacks.com/git-config-username-password-store-credentials
-
@Stuart 我不认为这意味着,实际上。我认为这意味着 git 无法连接到 vscode 提供的身份验证套接字,因此无法获取身份验证凭据。不幸的是,我不是 vscode 用户,除了“您尝试过重启 vscode 吗?”之外,我无法提供建议。
-
我在 vscode 终端中输入这些内容。好像这是一场狂欢。为什么 VScode 还要参与其中?
-
请注意,您明确要求通过 HTTPS 进行克隆,而不是 SSH (
https://...)。不过,我不知道 VSCode 是如何阻碍这里的。 -
遇到同样的问题,重新启动vscode:“问题已解决”。