当我在办公室时将我的笔记本电脑连接到wifi时,我的git和Bitbucket连接并正常工作.
但当我回到家并将相同的笔记本电脑连接到我的wifi并尝试访问bitbucket时,我得到了443错误.
git pull
fatal: unable to access 'https://xxxxx@bitbucket.org/xxxx/xxxx.git/': Failed to connect to bitbucket.org port 443: Network is unreachable
Run Code Online (Sandbox Code Playgroud)
添加了bitbucket ip到hosts文件,它现在正在工作!
sudo nano /etc/hosts
104.192.143.2 bitbucket.org
sudo /etc/init.d/networking restart
Run Code Online (Sandbox Code Playgroud)