将github项目自动同步镜像到gitlab Golang

mowen 2019-08-19 3707



PS:不用像网上其他帖子说的那样,什么在URL里面要加上github用户名之类的,直接填写https://github.com/用户名/项目名.git就可以了,而且也不用填写github的密码,另外如果gitlab上这个项目被修改提交过的话,是无法使用Mirror镜像功能Pull的,因为gitlab上的项目和github上的项目已经版本游离产生了分支!!!


官网文档说明在此:

Caution: If you do manually update a branch in the GitLab repository, the branch will become diverged from upstream and GitLab will no longer automatically update this branch to prevent any changes from being lost.




github项目截图:



gitlab镜像项目截图:



最新回复 (0)
返回
发新帖
X