git clone 命令不起作用?

vim*_*hra 5 git github bitbucket

我正在尝试克隆位存储桶回购。在安装 git 后执行以下命令后,我面临以下问题:

$ 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
Run Code Online (Sandbox Code Playgroud)

我怎样才能克服这个错误信息?

Von*_*onC 4

https URL 应尝试连接端口 443。

如果它尝试联系 8000,则可能表明存在中间代理:检查git config -l|grep -i proxy或您的环境变量 ( env or set|grep -i proxy)

您还可以尝试curl -L -v https://usernam@bitbucket.org/username/reponame.git获取更多信息。

最后,如果 https 不起作用,请不要忘记尝试通过 ssh 进行克隆:请参阅“为 Git 设置 SSH ”和git clone git@bitbucket.org:user/repo.git