Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloning Azure git repository reports "could not resolve host"

Here is my git url as reported by Azure TFS:

https://[email protected]/mycompany/myproject/_git/myproject

Here is my clone command

git clone https://myusername:mypass@[email protected]/mycompany/myproject/_git/myproject

However, I am unable to access the repository. The error is:

Could not resolve host: [email protected]

Can someone please suggest how to overcome this? Regards.

like image 965
Peter Avatar asked Feb 15 '19 16:02

Peter


2 Answers

maybe you dont have internet connection. you can check connection.

like image 45
MahmutKarali Avatar answered Oct 19 '22 13:10

MahmutKarali


This was from the hint in phd's comment. Turns out, Azure generated url is somewhat misleading. Instead of,

 https://[email protected]/mycompany/myproject/_git/myproject

it should really be:

https://dev.azure.com/mycompany/myproject/_git/myproject

This way, the following would work:

https://myuser:[email protected]/mycompany/myproject/_git/myproject
like image 140
Peter Avatar answered Oct 19 '22 15:10

Peter