Reputation: 77
I am getting below error while cloning a git repository from azure devops URL : https://dev.azure.com/mycompany/myproject/_git/myproject ERROR : Could not resolve host: dev.azure.com
i am trying via Git CMD and VS Code. Both is not working.
I also tried using the token which we get in azure repo.
I unset all the proxy now, becuase i was getting HTTP403 error while clone before.
NOTE : The proxy which i used was fom my organisation. And now iam doing this as a sample project with my personal gmail id in azure devops.
Thanks, Chithra
Upvotes: 5
Views: 13815
Reputation: 30343
If you were working behind a corporate proxy. You can try registering your company's proxy in your git config using below command.
git config --global http.proxy http://proxyuser:[email protected]:port
You can try running below command
git config --global --unset http.proxy
git config --global --unset https.proxy
Check out this thread for more information.
Upvotes: 5