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://usernam@bitbucket.org/username/reponame.git
Error :fatal: unable to access'https://username@bitbucket.org/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://usernam@bitbucket.org/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 git@bitbucket.org:user/repo.git
.
Modify your url to use git or ssh protocol for transfer.
eg git clone https://github.com/abcd/bashScripts.git
becomes:
git clone git@github.com:abcd/bashScripts.git
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.