https://juejin.cn/post/7062237873570840589
git clone报错
Missing or invalid credentials. Error: connect EACCES /run/user/1000/vscode-git-26b2d57ddf.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -13, code: 'EACCES', syscall: 'connect', address: '/run/user/1000/vscode-git-26b2d57ddf.sock' } Missing or invalid credentials. Error: connect EACCES /run/user/1000/vscode-git-26b2d57ddf.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -13, code: 'EACCES', syscall: 'connect', address: '/run/user/1000/vscode-git-26b2d57ddf.sock' } remote: HTTP Basic: Access denie
-
解决方法
在网上查找了一些资料后发现是git的验证出了问题,但我在过年这段期间也没改过git的相关设置,就很奇怪。不过,还是找到了解决方法,步骤如下:
- 打开VScode的设置界面。方法即:“Code > Preferences > Settings”(我是Mac系统,Windows下应该是File > Preferences > Settings)
- 搜索“git.terminalAuthentication”,并将该复选框前的对钩取消掉
- 使用“command+shift+P”(Windows下为Ctrl+Shift+P)快捷键打开命令面板,输入”Reload Window“,点击该命令重新加载窗口。
- 重新进行git push操作,顺利解决问题。
https://juejin.cn/post/7062237873570840589