1 | 田园犬小说隐私政策 |
PrivatePolicy
Share
1 | 田园犬小说隐私政策 |
平时更新cocoapods比较慢,如果本地配置了socks5,可以用以下方法对master分支进行仓库更新,这里以用SS更新cocoapods的master仓库为例
1 | cd ~/.cocoapods/repos/master |
cd到默认的cocoapods git仓库,并设置为socks5默认监听地址和端口,本地执行pod repo update master
即可通过ss来更新仓库,如果你本地的配置和上面不一致,则改参数为本地相应设置
要取消上述设置的话,执行下面命令
1 | cd ~/.cocoapods/repos/master |
以此类推,可以对更多git仓库进行设置以提高访问速度
这样做的好处是:相比全局命令 git config --global http.proxy 'socks5://127.0.0.1:1086'
,不会影响局域网内的pod仓库
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment