git clone https://github.com/owncloud/ios.git
Cloning into 'ios'...
fatal: unable to access 'https://github.com/owncloud/ios.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused
cocoapods报错
[!] Error installing AFNetworking [!] /usr/local/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/s5/8z4670mn7sjgmch0ybqbhm140000gp/T/d20161109-66691-1bgcw3d --template= --single-branch --depth 1 --branch 3.1.0 Cloning into '/var/folders/s5/8z4670mn7sjgmch0ybqbhm140000gp/T/d20161109-66691-1bgcw3d'... fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused
解决办法:
1、open ~/.gitconfig
2、删除里面的
[http "https://github.com"] proxy = socks5://127.0.0.1:1080
本文介绍了当使用Git从GitHub克隆代码库时遇到连接被拒绝错误的解决方法。主要原因是代理配置不当导致无法正常访问远程仓库。文章提供了具体的步骤来修正.gitconfig文件中的代理设置。
1567

被折叠的 条评论
为什么被折叠?



