青松

博客园 首页 新随笔 联系 订阅 管理

出现这类错误,通常是因为代理发生的,取消代理即可!

1、查看有无相关代理:

   git config --global http.proxy

   git config --global https.proxy

2、有的话,取消即可

  git config --global --unset http.proxy

  git config --global --unset https.proxy

 

3、如果1查询没有,或者2失败,那么打开并编辑隐藏文件.gitconfig

  隐藏文件显示:defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

  在系统的用户目录下打开.gitconfig文件

  删除代理那行数据

4、应该就可以pod update了,我的错误到此结束的

 

posted on 2019-11-26 09:31  轻轻松松  阅读(1535)  评论(0编辑  收藏  举报