I am trying to clone bit bucket repo. Once I execute the following command after installing git I am facing following issue :
$ git clone https://[email protected]/username/reponame.git
Error :fatal: unable to access'https://[email protected]/username/reponame.git/':
Failed to connect to hostname port 8000: Connection refused
How can I get past this error message?
An https url should attempt to contact the port 443.
If it tries to contact 8000, that might indicate an intermediate proxy: check git config -l|grep -i proxy
, or your environment variable (env or set|grep -i proxy
)
You can also try a curl -L -v https://[email protected]/username/reponame.git
to have more information.
Finally, don't forget to try and clone through ssh if https does not want to work: see "Set up SSH for Git", and git clone [email protected]:user/repo.git
.
Modify your url to use git or ssh protocol for transfer.
e.g. git clone https://github.com/abcd/bashScripts.git
becomes:
git clone [email protected]:abcd/bashScripts.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With