ItSolutionStuff.com

Git - fatal: Failed to connect to bitbucket.org port 443: Network is unreachable - Solved

By Hardik Savani • November 5, 2023
Git Bitbucket

When i was working on my project repository i found error "fatal: unable to access 'myrepo' Failed to connect to bitbucket.org port 443: Network is unreachable" few day ago. when i going to just git pull command i found error like as bellow:

fatal: unable to access 'https://hardik@bitbucket.org/hardik/setup_backend.git/':

Failed to connect to bitbucket.org port 443: Network is unreachable

But i try to solve it but nothing, at last i found solution i was use HTTPS for clone repo. But i need use SSH for git repo. So i changed remote HTTPS into ssh like as bellow:

git remote -v

git remote remove origin

git remote add origin git@bitbucket.org:hardik/setup_backend.git

And then i try to push and pull, it works, you can also try...

Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

How to Remove File from Git Commit Before Push?

Read Now →

How to Delete a Branch form GitHub Repository?

Read Now →

How to Rename Branch Name in Git Command?

Read Now →

How to Switch Branch using Git Command?

Read Now →

How to Create a New Branch on GitHub?

Read Now →

How to Clone Github Repository using Command Line?

Read Now →

How to Ignore Wildcard Files Name in Git using Gitignore?

Read Now →

How to Ignore Folder in Git using Gitignore?

Read Now →

How to Ignore File in Git using Gitignore?

Read Now →

How to Clone Laravel Project from Github on Server?

Read Now →

How to ignore file permission (chmod) changes in git?

Read Now →

Git - How to Find a Deleted File in Commit History?

Read Now →

Git Remove Last Commit from Local Example

Read Now →

How to remove current changes from local system in Git ?

Read Now →