按照
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\/
都未能解决。
求大神给方法建议,谢谢!