操作步驟
首先登入 https://tkc-gitlab.ai4.tw/
- 選擇
字幕編輯器

- 選擇左上角
sidebar-> Settings -> Access tokens
將 sidebar 往下捲, 直到 Settings 出現, 才能點選 Access tokens
參考 紅色框框

- 點選
Add new token

- 填入以下資訊
- Token name: vscode only
- Token description: 提供 vscode 同步程式碼使用
- Expireation date: 2026-01-10 (最多一年)
- Select a role: Maintainer
- Select scopes: read_repository, write_repository, read_registry, write_registry

- 確認 Token 資訊
因 Token 就跟密碼一樣, 請忽提供給其他人, 並妥善保存
而且 Token 需要每年更新一次

- 取得 git clone 連結
先回到 字幕編輯器 如下圖

再點右上角 Code 取得連結

連結為: https://tkc-gitlab.ai4.tw/ai/dev/subtitle-editor.git
- 於 vscode 中進行 git clone
假設要將程式碼儲存在 D:\AI程式組
執行以下指令
d:
cd d:\AI程式組
git clone https://tkc-gitlab.ai4.tw/ai/dev/subtitle-editor.git

- 填入帳號密碼
- 帳號: oauth2
- 密碼: 即第 5點取得的 token 內容

- 同步完成

AI程式組 – 為編輯器設定 Token 並同步至 vscode 中