[英]fatal: Authentication failed for 'https://github.com/myrepo/frontend/' After denying git credentials
I was about to push something to my git remote on github.我正要向 github 上的 git 遥控器推送一些东西。 VSCode usually asks me in a popup to do something like allow access to my git. VSCode 通常会在弹出窗口中询问我是否允许访问我的 git。 I normally put in my computer password and proceed.我通常输入我的计算机密码并继续。 But this time I pressed Deny .但是这次我按下了拒绝。
Right after, when I tried again to push to the remote I started getting:之后,当我再次尝试推送到遥控器时,我开始得到:
Missing or invalid credentials.
Error: connect ECONNREFUSED /var/folders/q6/npwl_7xj4wg91lg06f8pnnfh0000gn/T/vscode-git-320456bc0a.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/var/folders/q6/npwl_7xj4wg91lg06f8pnnfh0000gn/T/vscode-git-320456bc0a.sock'
}
Missing or invalid credentials.
Error: connect ECONNREFUSED /var/folders/q6/npwl_7xj4wg91lg06f8pnnfh0000gn/T/vscode-git-320456bc0a.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/var/folders/q6/npwl_7xj4wg91lg06f8pnnfh0000gn/T/vscode-git-320456bc0a.sock'
}
remote: No anonymous write access.
fatal: Authentication failed for 'https://github.com/myrepo/frontend/'
Quitting and restarting VSC fixed the issue.退出并重新启动 VSC 解决了该问题。 It prompted vscode to authorize through github in the browser.提示vscode在浏览器中通过github授权。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.