我无法在bitbucket上推送代码。 当我运行此命令“git push origin branch_name”时,它会给出错误 -
致命:无法访问“https://user@bitbucket.org/folder/project.git/”:无法连接到bitbucket.org端口443:网络无法访问。
如何解决这个问题。有人帮忙吗?
答案 0 :(得分:4)
将bitbucket.org IP添加到/etc/hosts
文件(这对我有用)
104.192.143.2 bitbucket.org
使用命令:
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
proxyuser
更改为您的代理用户proxypwd
更改为您的代理密码proxy.server.com
更改为代理服务器的网址8080
更改为代理服务器上配置的代理端口如果您决定随时重置此代理并在没有代理的情况下工作:
使用命令:
git config --global --unset http.proxy
最后,检查当前设置的代理:
git config --global --get http.proxy
的更多详情
答案 1 :(得分:0)
您是否可以通过浏览器或使用像curl这样的工具从该特定服务器访问Bitbucket? "网络无法访问"无论是在该系统上的网络配置还是在该系统与Bitbucket之间的网络中,都是一个非常有力的指标,表明存在问题。