V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yejianmail
V2EX  ›  程序员

想在 intellij idea 直接 clone 一个 github 的 repository

  •  
  •   yejianmail · 2019-12-08 20:26:41 +08:00 · 898 次点击
    这是一个创建于 1593 天前的主题,其中的信息可能已经有所发展或是发生改变。
    手里已有神器 v2xxx 的 windows 客户端,socks5 和 http 代理都设置了,始终无法克隆,比如我开 http 全局代理,idea 不开代理,无法克隆,比如我开 socks5,idea 设置 socks 代理无法克隆,然后我开 http 代理,idea 设置 http 代理,也无法克隆,感觉被打败了,是我哪里姿势不对么? idea 的克隆是调用的 git 还是 curl 来的,求姿势
    4 条回复    2019-12-08 21:30:39 +08:00
    shylocks
        1
    shylocks  
       2019-12-08 20:29:33 +08:00   ❤️ 1
    idea 调用的是 git,要给 git 设置 proxy
    git config --global https.proxy http://127.0.0.1:1080
    git config --global https.proxy https://127.0.0.1:1080
    yejianmail
        2
    yejianmail  
    OP
       2019-12-08 20:29:55 +08:00 via Android
    另外,gitee 使用挺好的,无奈的是还有好多优秀项目都在 github
    yejianmail
        3
    yejianmail  
    OP
       2019-12-08 20:31:56 +08:00 via Android
    @shylocks 谢谢老司机先,我去试试
    YourLord
        4
    YourLord  
       2019-12-08 21:30:39 +08:00 via Android
    一楼这种方式是早些年,但是这种情况 v2 或者$$就要开 http 代理才能用,切来切去不够优雅。后来买了个 proxifier 直接把 http 转成 socks5 了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5506 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 03:24 · PVG 11:24 · LAX 20:24 · JFK 23:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.