ssh: Could not resolve hostname git: No address associated with hostname

I came across this error when I needed to clone a git repo. I tried few times but I couldn't get it working. There were few suggestions on the internet, but none resolved my issue.
So, lets get to the point, this issue may occur due to following reasons:

1. If you are using proxy to access git and it is not properly configured/proxy is not allowing you access git due to permission issues.
More here:

2. This happens due to a silly mistake. [I do make silly mistakes sometimes]
Are you actually using git clone for cloning? I used this -
ssh git@github.com:neovim/neovim.git
instead of
git clone git@github.com:neovim/neovim.git
-----
Hope this have resolved your issue :-)
Happy Coding.

Comments

Popular posts from this blog

error: stray '\' in program

error: invalid application of ‘sizeof’ to incomplete type ‘struct ’

Expandable Arrays in C : behind the code