5

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

2

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

5 Comments

Now i am geeting an error after setting the proxy: Received HTTP code 403 from proxy after CONNECT
It looks like a permission issue of access the repo. Did it prompt you for password? Try using git url https://[email protected]/mycompany/myproject/_git/myproject , Or try providing credentials for your azure repo while git cloning. Use youruser:password or PAT in the git clone url. eg. git clone https://[email protected]/mycompany/myproject/_git/myproject, Or use SSH url instead of HTTP
Hi @chithra How was it going?
Yes, i used this syntax only. Is there any issue with my PROXY then?Becuase i can clone my git repos using that proxy. Only issue while cloning azure repo
Which syntax you have used. Did it prompt you for password. You can try using the credential generated by clicking the Generate Git Credentials when you click the clone button to get the clone url on azure devops repo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.