這是本文件的舊版!
Gitlab to GitHub 設定方式
因為需要將 GitLab 特定專案與 GitHub 特定專案進行同步, 因此將設定過程記錄在以下, 目前同步情境是 GitLab 如果有 push 就會自動 push 到 GitHub 上.
- 預計將 GitLab 上的 php-templ-verify-prj 專案 與 GitHub 上的 php-app-pipeline-template 進行同步
- 在 GitLab 的 php-templ-verify-prj 專案設定頁面進行設定 Settings → Repository → Mirroring repositories [Expand] 展開
- Git repository URL 輸入 GitHub 的網址, 不過在 https:/ / 後要加上 GitHub 帳號 Exp:
https://[email protected]/iii-org/php-app-pipeline-template.git
- Mirror direction : Push
- Authentication method : Password
- Password : 輸入 GitHub 帳號的密碼
- 按下 [Mirror repoitory] 後完成設定