通过web将 gitlab 迁移至gitea

目录

1、获取gitlab访问令牌

2 、迁移或镜像gitlab上的项目

3、允许git迁移源是私网ip 


1、获取gitlab访问令牌

gitlab 

user Settings(设置)-acess token(访问令牌)
记好token,项目git路径然后 回到gitea

通过web将 gitlab 迁移至gitea_第1张图片

2 、迁移或镜像gitlab上的项目

通过web将 gitlab 迁移至gitea_第2张图片

3、修改配置文件允许git迁移源是私网ip 

默认情况下,不允许git迁移源是私网ip ;可通过修改配置文件解决


You are not allowed to import from private IPs.

通过web将 gitlab 迁移至gitea_第3张图片

解决方法:修改配置文件gitea/custom/conf/app.ini

追加 :

[migrations]
ALLOW_LOCALNETWORKS = true
ALLOWED_DOMAINS = 127.0.0.1,192.168.1.10

重新启动gitea

迁移成功

你可能感兴趣的:(linux,git)