Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

fatal: unable to access 'https://bitbucket.org/s****/my******.git/': Could not resolve host

Preksha Shukla
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 6, 2022

I'm able to access bitbucket from browser but when i'm trying to clone the code 

I'm getting this error

fatal: unable to access 'https://bitbucket.org/stoneridge/s****/my******.git/': Could not resolve host: bitbucket.org
Following are the logs:
Capture.PNG
[2022-10-06T12:03:30.429Z] Log level: Info
[2022-10-06T12:03:30.435Z] [info] Validating found git in: C:\Program Files\Git\cmd\git.exe
[2022-10-06T12:03:30.449Z] [info] Validating found git in: C:\Program Files (x86)\Git\cmd\git.exe
[2022-10-06T12:03:30.456Z] [info] Validating found git in: C:\Program Files\Git\cmd\git.exe
[2022-10-06T12:03:30.463Z] [info] Validating found git in: D:\Users\2413061\AppData\Local\Programs\Git\cmd\git.exe
[2022-10-06T12:03:31.800Z] [info] Using git 2.37.3.windows.1 from D:\Users\2413061\AppData\Local\Programs\Git\cmd\git.exe
[2022-10-06T12:03:54.613Z] > git clone https://Preksha028@bitbucket.org/s****/my******.git d:\Users\2413061\Documents\my****** --progress [13236ms]
[2022-10-06T12:03:54.614Z] Cloning into 'd:\Users\241061\Documents\my****'...
fatal: unable to access 'https://bitbucket.org/s****/my******.git/': Could not resolve host: bitbucket.org

1 answer

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2022

Your browser and git client (VS code) may not have the same network configuration. 

You will have to open each network configuration and match both (proxy?).

Another option is to try connecting using SSH, which uses a different port (22) which might be open for your git client.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events