cheng4741
V2EX  ›  iDev

命令行好像访问不了 git,折腾了好久,求助 V 友

By cheng4741 at 2018 年 9 月 26 日 · 5903 次点击

我用命令行 clone 不了 git 仓库,任何仓库都不行,都会报如下这个错误

fatal: unable to access 'https://github.com/bmob/Bmob-iOS-SDK.git/': 
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

但是用 SourceTree 客户端没有问题

执行pod repo update命令也报一样的错误

Updating spec repo `master`
  $ /usr/local/bin/git -C /Users/zhubch/.cocoapods/repos/master fetch origin
  --progress
  fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': 
  error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

之前好好的,我升级了 Xcode(10.0)和 Command line tools 之后就出现这个问题了

macOS 10.13.6

git version 2.18.0

6 条回复  •  2018-09-26 18:56:51 +08:00
zhangalong69
   1
zhangalong69  
   2018 年 9 月 26 日
未知协议?
lintbai
   2
lintbai  
   2018 年 9 月 26 日
这个是 git 版本的问题,下载最新的 git 安装就可以解决
lintbai
   3
lintbai  
   2018 年 9 月 26 日
gihub 停止了弱加密 TLSv1/TLSv1.1 协议的支持,比较旧的客户端会受到影响
mason961125
   4
mason961125  
   2018 年 9 月 26 日
brew install git
ShineSmile
   5
ShineSmile  
   2018 年 9 月 26 日
xcode-select --install
或者去商店更新下命令行?
DamonLin
   6
DamonLin  
   2018 年 9 月 26 日
直接用 git 上传工具,Tortoisegit
iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
© 2026 V2EX · 295ms · 3.9.8.5