V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
coolair
V2EX  ›  问与答

Gitlab 导入仓库的时候一直报这个错,怎么解决?

  •  
  •   coolair · 2016-07-23 19:26:14 +08:00 · 3694 次点击
    这是一个创建于 2842 天前的主题,其中的信息可能已经有所发展或是发生改变。
    按照 http://stackoverflow.com/questions/20359936/import-an-existing-git-project-into-gitlab 的方法:
    git clone --mirror https://github.com/raveren/kint
    cd kint.git
    git remote add gitlab http://gitlab.example.com/raveren/kint.git
    git push gitlab --mirror

    导入仓库,但是一直报错,报错如下:
    $ git push gitlab --mirror
    error: Cannot access URL http://abc.com/coolair/mall.git/, return code 22
    fatal: git-http-push failed
    error: failed to push some refs to 'http://abc.com/coolair/mall.git'

    使用过网上的很多方法:
    包括改 unix 为 tcp
    增加 nginx 的 location ~ [-\/\w\.]+\.git\/
    都未能解决。

    求大神给方法建议,谢谢!
    3 条回复    2019-09-12 16:44:46 +08:00
    coolair
        1
    coolair  
    OP
       2016-07-23 19:57:25 +08:00
    http://hdu104.com/401
    按如上方法已解决。
    lamour0922
        2
    lamour0922  
       2019-09-12 15:51:36 +08:00
    怎么解决的老哥,链接挂了
    coolair
        3
    coolair  
    OP
       2019-09-12 16:44:46 +08:00
    @lamour0922 #2 完全不记得了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   738 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:54 · PVG 05:54 · LAX 14:54 · JFK 17:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.