背景:win10的hper-v中装了ubuntu虚拟机,虚拟机的网络为手动代理。在进行git操作时,出现下面错误:
git push origin master
fatal: unable to access 'https://chunxuwu@bitbucket.org/chunxuwu/myweb.git/': Failed to connect to 172.30.144.177 port 1080: Connection timed out
解决办法:
git config --global http.proxy http://192.168.43.144:1080
红色部分为虚拟机中的:
参考: