简体   繁体   中英

fatal: fatal: unable to connect to github.com: github.comgithub.com[0: 20.205.243.166]]: errno=Operation timed out

I try to clone a open source code but I can't finish it.

niesong@niesongdeiMac testApp % git clone https://github.com/hackiftekhar/IQKeyboardManager.git is cloning 'IQKeyboardManager'... fatal: unable to connect to github.com: github.com[0: 20.205.243.166]: errno=Operation timed out

this is my gitconfig

[url "“https://”"] insteadOf = git://

[url "https://"] insteadOf = git://

[url "git://github.com/"] insteadOf = https://github.com/

but I can pod search IQKeyboardManager

git:// protocol is no longer supported at Github . You should remove the section from your config:

git config --remove-section url.git://github.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM