14
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vs codeのターミナルでgit pushしてError: connect ECONNREFUSED...と怒られたとき

Posted at

git pushしたらエラー

$ git push
...
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1546/vscode-git-f7c0b94a0e.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/run/user/1546/vscode-git-f7c0b94a0e.sock'
}
fatal: Authentication failed for 'https://*****'

と怒られた。
素直にvscodeのソース管理から操作すればいいのだろうけど、60K+とか書いてあって触りたくない。

解決

vs codeがGIT_ASKPASSを設定しているのが悪い。

$ export GIT_ASKPASS=

をすれば素直にターミナルでユーザ・パスワードを聞かれるようになる。

14
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?