0
0

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 1 year has passed since last update.

vim-plugのPlugInstallでfatal could not read remote repositoryになったときの対処法

Last updated at Posted at 2022-11-21

git push するときにパスワード入力をssh通信によって省略するためにレポジトリのurlを置き換える処理をする設定をしていたために生じたエラー

before

~/.ssh/config
Host github github.com
  HostName github.com
  IdentityFile ~/.ssh/github
  User git
~/.gitconfig
[url "github:"]
    InsteadOf = https://github.com/
    InsteadOf = git@github.com:

after

~/.gitconfig
[url "github:"]
    pushInsteadOf = https://github.com/
    pushInsteadOf = git@github.com:

解決方法

InsteadOfpushInsteadOfにしてpushのときのみurlを置き換えるように変更したところPlugInstallできるようになった

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?