coolair
V2EX  ›  问与答

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

  •  
  •   coolair · Jul 23, 2016 · 4130 views
    This topic created in 3606 days ago, the information mentioned may be changed or developed.
    按照 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 replies    2019-09-12 16:44:46 +08:00
    coolair
        1
    coolair  
    OP
       Jul 23, 2016
    http://hdu104.com/401
    按如上方法已解决。
    lamour0922
        2
    lamour0922  
       Sep 12, 2019
    怎么解决的老哥,链接挂了
    coolair
        3
    coolair  
    OP
       Sep 12, 2019
    @lamour0922 #2 完全不记得了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4174 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:13 · PVG 18:13 · LAX 03:13 · JFK 06:13
    ♥ Do have faith in what you're doing.