1

欧雷说:「一个 Git 项目一般来说我会至少推到两个托管平台上,如 GitLab 和 GitHub,...

 3 weeks ago
source link: https://ourai.ws/murmurs/1hqmcaumo/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

欧雷说:「一个 Git 项目一般来说我会至少推到两个托管平台上,如 GitLab 和 GitHub,有时也会多...」

欧雷
发表于 2024-04-05 13:40

一个 Git 项目一般来说我会至少推到两个托管平台上,如 GitLab 和 GitHub,有时也会多出来 Gitee 或其他的,因而代码同步是个刚需。

之前我都是手动同步,今天把流程优化了下,尽量引进自动化手段:

  1. 在 GitLab 上配置 GitHub 为镜像;
  2. 利用 GitHub Actions 把代码同步到 Gitee。

这样一来,我在本地只需配置 GitLab 为远程源即可。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK