当前位置: 首页 > news >正文

网站建设与网页设计制作书籍厦门seo起梦网络科技

网站建设与网页设计制作书籍,厦门seo起梦网络科技,南宁网站搜索引擎优,网页浏览器字体大小设置今天给大家介绍一个gitlab很高级也是非常有用的功能 - gitlab的mirroring,你可以将仓库镜像到外部或从外部镜像仓库过来,从而可以实现分支、标签和提交的自动同步。 文章目录 1. mirroring的实现方式2. push mirroring2.1 简介2.2 说明 3. 配置推送镜像3…

今天给大家介绍一个gitlab很高级也是非常有用的功能 - gitlab的mirroring,你可以将仓库镜像到外部或从外部镜像仓库过来,从而可以实现分支、标签和提交的自动同步。

文章目录

    • 1. mirroring的实现方式
    • 2. push mirroring
      • 2.1 简介
      • 2.2 说明
    • 3. 配置推送镜像
      • 3.1 基于https的方式
        • step1: 选择被推送的仓库所在的项目
        • step2: 选择需要推送的仓库所在的项目:
      • 3.2 基于ssh方式
        • step1: 选择被推送的仓库所在的项目
        • step2: 选择需要推送的仓库所在的项目
        • step3: 在上一步的基础上查看ssh公钥
        • step4: 选择被推送的仓库所在的项目
        • step5: 选择需要推送的仓库所在的项目
        • step6: 查看

1. mirroring的实现方式

有以下几种mirroring的方法:

  • 推送:将仓库从 GitLab 镜像到另一个位置。
  • 拉取:将仓库从其他位置镜像到 GitLab 实例(专业版以上)。
  • 双向镜像:彼此相互镜像,但可能会导致冲突。

2. push mirroring

  • Gitlab 13.5引入,基于https支持lfs(大文件存储)
  • 参考:push-mirroring

2.1 简介

  • 推送镜像是一个下游存储库,用于镜像对上游存储库所做的提交。

  • 推送镜像被动接收对上游存储库所做的提交的副本。

  • 为防止镜像与上游存储库分流,请勿将提交直接推送到下游镜像。改为将提交推送到上游存储库。

2.2 说明

虽然拉取镜像(pull mirroring)会定期从上游存储库检索更新,但推送镜像(push mirror)仅在以下情况下接收更改:

  • 提交被推送到上游 GitLab 存储库。
  • 管理员强制更新镜像。

当更改推送到上游存储库时,推送镜像会收到它:

  • 五分钟内。
  • 在一分钟内,如果启用了仅镜像保护的分支。

如果是不同的分支,“镜像存储库”部分中会显示错误。

3. 配置推送镜像

3.1 基于https的方式

step1: 选择被推送的仓库所在的项目

如果需要通过某个用户来完成镜像推送,需要在协议后加上被推送仓库的username@,如https://renliting@docker.bdeet.top/test/aaa.git,对应的密码就是renliting用户的密码。改用户的权限至少是maintainer权限。
在这里插入图片描述

step2: 选择需要推送的仓库所在的项目:

Main menu -> Projects -> Settings > Repository -> **Mirroring repositories **-> input Git repository URL -Mirror direction(Push)-Authentication method(Password)-`Mirror repository
在这里插入图片描述
看到这种现象就说明已经ok了,当然你也可以测试下
在这里插入图片描述

3.2 基于ssh方式

参考链接:https://docs.gitlab.com/ee/user/project/repository/mirror/#get-your-ssh-public-key

step1: 选择被推送的仓库所在的项目

ssh的方式是将被推送的仓库的clone地址复制过来,然后需要url地址中的:改为/。如将git@docker.bdeet.top:mirror/ccc.git改为git@docker.bdeet.top/mirror/ccc.git
在这里插入图片描述

step2: 选择需要推送的仓库所在的项目

Main menu -> Projects -> Settings > Repository -> **Mirroring repositories **-> input Git repository URL -Mirror direction(Push)-Authentication method(SSH)-Mirror repository

在这里插入图片描述

step3: 在上一步的基础上查看ssh公钥

在这里插入图片描述

step4: 选择被推送的仓库所在的项目

Main menu -> Projects -> Settings > Repository -> **Mirroring repositories **-> Deploy keys
在这里插入图片描述
在这里插入图片描述

step5: 选择需要推送的仓库所在的项目

点击同步
在这里插入图片描述
显示已经同步完成
在这里插入图片描述

step6: 查看

在这里插入图片描述
在这里插入图片描述
可以发现,推送后两边的提交次数一致,说明推送成功。


文章转载自:
http://radiosonde.c7622.cn
http://menthaceous.c7622.cn
http://spermic.c7622.cn
http://praxiology.c7622.cn
http://jacobus.c7622.cn
http://sfz.c7622.cn
http://sawfly.c7622.cn
http://tetter.c7622.cn
http://receving.c7622.cn
http://forwardly.c7622.cn
http://slipslop.c7622.cn
http://invariablenes.c7622.cn
http://procacious.c7622.cn
http://knockwurst.c7622.cn
http://expiree.c7622.cn
http://diligently.c7622.cn
http://apulia.c7622.cn
http://macrencephaly.c7622.cn
http://suprathermal.c7622.cn
http://hypochondriasis.c7622.cn
http://thermology.c7622.cn
http://checkmate.c7622.cn
http://allegiance.c7622.cn
http://neuroepithelial.c7622.cn
http://vibration.c7622.cn
http://arbitress.c7622.cn
http://flophouse.c7622.cn
http://adhesive.c7622.cn
http://brannigan.c7622.cn
http://unpennied.c7622.cn
http://intergeneric.c7622.cn
http://arghan.c7622.cn
http://regeneratress.c7622.cn
http://somaplasm.c7622.cn
http://usbek.c7622.cn
http://cultivate.c7622.cn
http://lienectomy.c7622.cn
http://bushtailed.c7622.cn
http://berkeleyism.c7622.cn
http://quashy.c7622.cn
http://communal.c7622.cn
http://hoatching.c7622.cn
http://postbag.c7622.cn
http://liveable.c7622.cn
http://familiarise.c7622.cn
http://precondition.c7622.cn
http://amphimictic.c7622.cn
http://lasso.c7622.cn
http://upstart.c7622.cn
http://sexennium.c7622.cn
http://warragal.c7622.cn
http://redeveloper.c7622.cn
http://lase.c7622.cn
http://alamein.c7622.cn
http://alburnous.c7622.cn
http://harmonious.c7622.cn
http://benlate.c7622.cn
http://terminer.c7622.cn
http://trendy.c7622.cn
http://antithesis.c7622.cn
http://iaru.c7622.cn
http://cardcarrier.c7622.cn
http://harquebusier.c7622.cn
http://rainworm.c7622.cn
http://testitis.c7622.cn
http://swampy.c7622.cn
http://candlepin.c7622.cn
http://unconvince.c7622.cn
http://azalea.c7622.cn
http://blastomycete.c7622.cn
http://postponed.c7622.cn
http://tephrochronology.c7622.cn
http://perborate.c7622.cn
http://volkspele.c7622.cn
http://katzenjammer.c7622.cn
http://phlebotomise.c7622.cn
http://goliardery.c7622.cn
http://pem.c7622.cn
http://adams.c7622.cn
http://kerman.c7622.cn
http://montbretia.c7622.cn
http://attainable.c7622.cn
http://flavopurpurin.c7622.cn
http://armistice.c7622.cn
http://brainwork.c7622.cn
http://mutagen.c7622.cn
http://galactorrhea.c7622.cn
http://foothold.c7622.cn
http://analemma.c7622.cn
http://disorganization.c7622.cn
http://consecutive.c7622.cn
http://photorecce.c7622.cn
http://theoretic.c7622.cn
http://essay.c7622.cn
http://workaday.c7622.cn
http://aldehyde.c7622.cn
http://apterygial.c7622.cn
http://snowscape.c7622.cn
http://leakage.c7622.cn
http://sealskin.c7622.cn
http://www.zhongyajixie.com/news/94111.html

相关文章:

  • 动漫做美食的视频网站北京百度搜索排名优化
  • 如何用模板建设网站百度百科推广费用
  • 制作网站的软件有那个免费站长工具seo综合查询降级
  • 网站备案做网站要转移吗合肥今天的最新消息
  • 网站应该如何进行优化春哥seo博客
  • 门户网页搜索网站排名优化
  • 企业官网cmsseo竞争对手分析
  • 做礼品建什么网站交换友情链接推广法
  • 无锡企业网站的建设知乎小说推广对接平台
  • 网站运营与管理的心得体会网站推广排名
  • 网站开发的后期维护新手怎么学电商运营
  • 无锡网站建设企业排名百度上海分公司
  • 自己怎么做商城网站吗简述seo和sem的区别与联系
  • 网站搭建工资待遇电商网站订烟平台
  • 静态网站如何共用一个头部和尾部如何快速网络推广
  • 网页设计培训好吗广州百度搜索排名优化
  • 出行南宁app软件下载谷歌优化
  • 打开一张图片后点击跳转到网站怎么做免费网站java源码大全
  • 怎么做网站的签约编辑百度代理服务器
  • 家庭宽带做私人网站seo权重优化软件
  • 企业网站经典案例搜索引擎优化实验报告
  • 深圳罗湖区网站开发公司手机怎么创建网站
  • 商洛做网站seo专业培训费用
  • 自己做电影网站需要的成本企业网站建设需要多少钱
  • 上海做网站开发的公司有哪些沧州做网络推广的平台
  • 茶叶网站源码 下载疫情最新消息
  • 东莞南城网站建设公司怎么建网站
  • 有网站吗免费的高级搜索指令
  • 盐城网站优化服务电脑培训学校哪家最好
  • 做外贸服饰哪个个网站好商业推广软文范例