前天晚上写完相关的代码没有测试就commit了,今天想着测试一下然后push,debug完了之后突然发现和gitee的连接出现了问题,遂搜索了一番找到了解决方案。

报错如下:

wishmeluck@wishmeluck:~/muduo_chat_server$ git push origin master 
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-ec011034bf.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/run/user/1000/vscode-git-ec011034bf.sock'
}
remote: [session-fc456392] Unauthorized
fatal: Authentication failed for 'https://gitee.com/leehaunan/muduo_chat_server'

解决:文件 --> 首选项 --> 搜索git.auth...,取消勾选后重新勾选,然后重启终端。问题解决。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐