40823210 cd2021

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • Stage1-bg18
    • w1
      • LEO
    • w2~w3
      • 零件組合圖-1
      • 爆炸圖
      • Inventor模擬
    • w4(報告)
  • Stage2-bg11
    • w5
    • w6
      • 零件組合圖-2
    • w7
    • w8
    • w9(報告)
  • Stage3-bg2
    • task1
    • task2
      • S1-B18
      • S2-B11
    • task3
    • w10
    • w11
    • w12
    • w13
    • w14
    • w15
    • w16
    • w17
    • w18
  • 影片
    • 第2週
    • 第3週
    • 第4週(報告)
    • 第5週
    • 第6週
    • 第7週
    • 第8週
    • 第9週(報告)
  • gitter討論
  • 筆記
    • 9443
    • 8444
    • OBS
    • Python remote API
    • CoppeliaSim物體顏色、透明度
    • CoppeliaSim碰撞&動態
    • gitlab
    • gitlab-ssh
gitlab << Previous

gitlab-ssh

利用 SSH 對 Gitlab 連線

1.首先必須要將 OpenSSH 格式的 public key 登錄到 Gitlab 帳號下

2.確定已經利用 putty.exe 建立 session 名稱為 gitlab.com 的設定, 其中設定 AUTH 與 Proxy 資料

3.修改各倉儲中 .git/config 的 gitlab remote add 設定, 以 url = git@gitlab.com:user_name/url 對 gitlab 連接.

----------

◾資料夾➝Portablegit➝bin➝sh.exe

◾輸入ssh-keygen -t rsa -b 4096 -C "40823210-gitlab"➝按enter➝輸入/y/tmp/id_rsa_gitlab➝按enter➝按enter

◾資料夾➝.git➝config➝更改[remote"gitlab"]的url=git@gitlab.com:40823210_cd2021.git

◾資料夾➝PuTTY➝puttygen.exe

◾點Load

◾選id_rsa_gitlab➝開啟

◾點確定

◾點Save private key

◾點是(Y)

◾資料夾➝tmp➝輸入40823210-gitlab.ppk➝存檔

◾資料夾➝PuTTY➝putty.exe➝輸入(二處)gitlab.com➝Save

◾點SSH➝Auth➝Browse...

◾資料夾➝tmp➝選30823210-gitlab.ppk➝開啟

◾點Session➝Save➝Open

◾到gitlab➝點Add SSH key

◾資料夾➝tmp➝開啟id_rsa_gitlab.pub➝複製全部內容

◾將內容複製到SSH key➝Add key

◾點SSH Keys重整➝即可看到新增的SSH keys

◾利用gitlab-ssh推送成功

◾實際操作影片


gitlab << Previous

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