V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ooo4

vscode 设置了 clash 的代理,但是相关的 git 操作,还是报错 fatal: unable to access

  •  
  •   ooo4 · Jan 29, 2024 · 6174 views
    This topic created in 822 days ago, the information mentioned may be changed or developed.

    Http: Proxy

    The proxy setting to use. If not set, will be inherited from the http_proxy...

    http://127.0.0.1:7890
    

    设置了还是不行,只能用那个 steam++

    21 replies    2024-01-30 16:59:06 +08:00
    hzdzyx
        1
    hzdzyx  
       Jan 29, 2024   ❤️ 2
    git config --global http.proxy http://127.0.0.1:7890
    git config --global https.proxy http://127.0.0.1:7890
    kkk9
        2
    kkk9  
       Jan 29, 2024
    vscode 也是调用 git 的服务,全局 或者 #1 配置 git 走代理
    zqx
        3
    zqx  
       Jan 29, 2024 via Android
    如果是 ssh 协议需要在.ssh 目录添加 config 文件
    DamienS
        4
    DamienS  
       Jan 30, 2024
    @hzdzyx 之前有同样问题,现在 ok 啦 谢谢
    BORBER
        5
    BORBER  
       Jan 30, 2024
    ❯ cat .ssh\config
    Host github.com
    Hostname ssh.github.com
    Port 443

    flyqie
        6
    flyqie  
       Jan 30, 2024 via Android
    git 会走自己的代理配置。。

    所以你设*_proxy 基本是不会有效的。。
    gentrydeng
        7
    gentrydeng  
       Jan 30, 2024
    @hzdzyx #1 Git 没有 `https.*` 配置项。
    hzdzyx
        8
    hzdzyx  
       Jan 30, 2024
    @gentrydeng 受教了
    zx9481
        9
    zx9481  
       Jan 30, 2024
    我一般开 clash 的 tun 一劳永逸
    cvbnt
        10
    cvbnt  
       Jan 30, 2024 via Android
    无脑使用 TUN 模式
    shiquda
        11
    shiquda  
       Jan 30, 2024
    ooo4
        12
    ooo4  
    OP
       Jan 30, 2024
    @hzdzyx 现在 ok 啦 谢谢
    alsas
        13
    alsas  
       Jan 30, 2024
    clash 直接开 TUN 模式 解决一切问题
    daolanfler
        14
    daolanfler  
       Jan 30, 2024
    话说 clash 都跑路了,就目前这个情况,还能用个一年半载的,之后用啥呢
    weijancc
        15
    weijancc  
       Jan 30, 2024
    @daolanfler #14 clash 只是个客户端, 用"跑路"这个词是不妥的, 很多早就不更新的代理客户端都是可以用的
    KP45
        16
    KP45  
       Jan 30, 2024
    WSL2 支持直接使用 Windows 的系统代理了
    https://github.com/microsoft/WSL/releases/tag/2.0.0
    blacktail
        17
    blacktail  
       Jan 30, 2024
    如果走 http ,要设置 git.config 。如果走 ssh ,要设置.ssh/config 。
    zed1018
        18
    zed1018  
       Jan 30, 2024
    借楼提一句,如果是 SSH 的话,可能有些梯子不支持 22 outbound
    zcjwxf
        19
    zcjwxf  
       Jan 30, 2024
    git 是 git vscode 是 vscode
    Betsy
        20
    Betsy  
       Jan 30, 2024 via iPhone
    EspoirBao
        21
    EspoirBao  
       Jan 30, 2024
    这种问题直接无脑 TUN ,解决一切烦恼
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 78ms · UTC 18:18 · PVG 02:18 · LAX 11:18 · JFK 14:18
    ♥ Do have faith in what you're doing.