🐡

"`git clone`"コマンド実行時のエラー「`Error: connect ECONNREFUSED`」の対処法

1 min read

"git clone"コマンド実行時のエラー

"git clone [リポジトリ先]"を実行すると、以下のようなエラーが発生。

masa@DESKTOP-0CNPS43:~/environment$ git clone https://github.com/MASA20201203/RailsTutorial.git
Cloning into 'RailsTutorial'...
Missing or invalid credentials.
Error: connect ECONNREFUSED /tmp/vscode-git-3ff200b27a.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1134:16) {
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/tmp/vscode-git-3ff200b27a.sock'
}
Missing or invalid credentials.
Error: connect ECONNREFUSED /tmp/vscode-git-3ff200b27a.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1134:16) {
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/tmp/vscode-git-3ff200b27a.sock'
}
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/MASA20201203/RailsTutorial.git/'

対処法

githubの公開範囲をprivateではなく、publicにする。

Discussion

ログインするとコメントできます