40823245 cd2021

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • WORKS
    • stage1
      • W1
      • W2~W3
      • W4
      • 分組程式測試(待測試)
      • 後續
      • W5
      • 新增鏡頭
    • stage2
      • W6
      • W7
      • W8
      • W9
    • stage3
      • W10
      • task1
      • task2
      • task3
      • stage3作業
      • W15
      • W16
      • W17
      • W18
  • 筆記
    • 建立網頁
    • 9443
    • 8444
    • ssh
    • 上傳
    • 更改標題
    • Zoomit
    • 使用cms和acp指令
    • 合併組員倉儲
    • heroku
    • gitlab
      • gitlab-ssh
    • gogs
    • fossil
  • 網站影片
  • GitHub Pages問題
  • github問題
heroku << Previous Next >> gitlab-ssh

gitlab

gitlab步驟影片版本(用stage2-bg1做示範)

創建gitlab帳號

username:40823245

email:40823245@gm.nfu.edu.tw

新增空的倉儲

輸入要同步過來的倉儲名稱(我用stage3-bg1當例子)

下面勾公開和不要有內建(空倉儲)

建完會看到下圖

在對應的資料夾輸入git branch確認主分支

如果無yml檔就建立,有yml檔就改(master→main)

yml程式碼(檔名要存yml)

pages:
  stage: deploy
  script:
  - mkdir .public
  - cp -r * .public
  - mv .public public
  artifacts:
    paths:
    - public
  only:
  - main
variables:
  GIT_SUBMODULE_STRATEGY: recursive

推推看

再檢查一次主分支

git remote到gitlab

git remote add gitlab https://gitlab.com/40823245/stage3-bg1.git

推到gitlab

可以看到gitlab為下圖

commit紀錄都在

到設定找到gitlab同步後的網址

若沒顯示下圖請重整頁面,它需要時間轉

點連結可看到同步的頁面和網址


heroku << Previous Next >> gitlab-ssh

Copyright © All rights reserved | This template is made with by Colorlib