Closed promitheas17j closed 10 months ago
I had the same issue, and ended up resorting to commenting out the insteadof section in ".gitconfig".
; ~/.gitconfig
[init]
defaultBranch = main
[user]
email = your email
name = your name
; [url "ssh://git@github.com/"]
; insteadOf = https://github.com/
This seems to have solved it for me as well. It seems that when running
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
those lines are added, but when reverting the changes by running
git config --global url.https://github.com/.insteadOf ssh://git@github.com/
they are not removed. Thank you!
nvim --version
:Run :checkhealth for more info
git version 2.41.0
Arch Linux (6.4.8-arch1-1)
alacritty 0.12.2 (9d9982df)
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
git config --global url.https://github.com/.insteadOf ssh://git@github.com/
Errors: Cloning into 'home/mart/.local/share/nvim/site/pack/packer/start/nvim-fugitive'... ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.