V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
cheng4741
V2EX  ›  iDev

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

  •  
  •   cheng4741 ·
    zhubinchen · 2018-09-26 14:33:02 +08:00 · 4479 次点击
    这是一个创建于 2010 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我用命令行 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-09-26 14:42:03 +08:00
    未知协议?
    lintbai
        2
    lintbai  
       2018-09-26 15:03:43 +08:00
    这个是 git 版本的问题,下载最新的 git 安装就可以解决
    lintbai
        3
    lintbai  
       2018-09-26 15:08:32 +08:00
    gihub 停止了弱加密 TLSv1/TLSv1.1 协议的支持,比较旧的客户端会受到影响
    mason961125
        4
    mason961125  
       2018-09-26 15:09:47 +08:00
    brew install git
    ShineSmile
        5
    ShineSmile  
       2018-09-26 18:24:24 +08:00
    xcode-select --install
    或者去商店更新下命令行?
    DamonLin
        6
    DamonLin  
       2018-09-26 18:56:51 +08:00
    直接用 git 上传工具,Tortoisegit
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3318 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:45 · PVG 21:45 · LAX 06:45 · JFK 09:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.