一、iOS Cocoapods更换快速访问源fastGit方式,和遇到的Error解决办法
终端执行命令:
git config --global url."https://hub.fastgit.xyz".insteadOf https://github.com
替换github链接为快速访问链接能加快pod速度, 或者前往文件夹修改:
1. 前往文件夹 -> 填写路径~/.gitconfig
2. 打开.gitconfig文件,替换https://www.github.com 为 https://hub.fastgit.xyz 就能实现git快速下载
3. 如果快速访问链接 https://hub.fastgit.xyz 不能正常pod遇到如下Error,就可以前往文件夹~/.gitconfig 删除掉https://hub.fastgit.xyz替换链接语句,恢复正常https://github.com访问