完整报错:
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-65312f85c9.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/run/user/1000/vscode-git-65312f85c9.sock'
}
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-65312f85c9.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/run/user/1000/vscode-git-65312f85c9.sock'
}
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/XXX/YYY.git/'
解决办法:
参考 这篇博客 的方法1,生成自己的 token。
运行1:
git clone https://<token>@github.com/<username>/<reponame>.git
说明:
<token>
:创建好的令牌号
username:gtihub起的名字
reponame:远程仓库的名字
例如:
git remote set-url origin https://ge5jq2AJIUSHIYTWPNWYzCy@github.com/haotian-liu/LLaVA.git
运行2:
git push -u origin master