Gitlab 访问令牌建立步骤及要领

Gitlab 访问令牌建立步骤及要领 

 

# Gitlab 访问令牌建立步骤及要领

### 建立项目

1.  项目群组/命名空间一定要选“用户” （目前已经没有这个选项了，但不影响）
2.  可见级别一定要选“私有”

### 建立令牌

1.  选择角色“owner”
2.  范围选择“api”

### 仓库设定

1.  点击“仓库
2.  点击受保护分支展开并选择“允许强制推送”

%23%23%23%20%E5%BB%BA%E7%AB%8B%E9%A1%B9%E7%9B%AE%0A1.%20%E9%A1%B9%E7%9B%AE%E7%BE%A4%E7%BB%84%2F%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4%E4%B8%80%E5%AE%9A%E8%A6%81%E9%80%89%E2%80%9C%E7%94%A8%E6%88%B7%E2%80%9D%20%EF%BC%88%E7%9B%AE%E5%89%8D%E5%B7%B2%E7%BB%8F%E6%B2%A1%E6%9C%89%E8%BF%99%E4%B8%AA%E9%80%89%E9%A1%B9%E4%BA%86%EF%BC%8C%E4%BD%86%E4%B8%8D%E5%BD%B1%E5%93%8D%EF%BC%89%0A2.%20%E5%8F%AF%E8%A7%81%E7%BA%A7%E5%88%AB%E4%B8%80%E5%AE%9A%E8%A6%81%E9%80%89%E2%80%9C%E7%A7%81%E6%9C%89%E2%80%9D%0A%23%23%23%20%E5%BB%BA%E7%AB%8B%E4%BB%A4%E7%89%8C%0A1.%20%E9%80%89%E6%8B%A9%E8%A7%92%E8%89%B2%E2%80%9Cowner%E2%80%9D%0A2.%20%E8%8C%83%E5%9B%B4%E9%80%89%E6%8B%A9%E2%80%9Capi%E2%80%9D%0A%0A%23%23%23%20%E4%BB%93%E5%BA%93%E8%AE%BE%E5%AE%9A%0A1.%20%E7%82%B9%E5%87%BB%E2%80%9C%E4%BB%93%E5%BA%93%0A2.%20%E7%82%B9%E5%87%BB%E5%8F%97%E4%BF%9D%E6%8A%A4%E5%88%86%E6%94%AF%E5%B1%95%E5%BC%80%E5%B9%B6%E9%80%89%E6%8B%A9%E2%80%9C%E5%85%81%E8%AE%B8%E5%BC%BA%E5%88%B6%E6%8E%A8%E9%80%81%E2%80%9D

id: 943636f777d54e03981d68a2d1071bc7
parent_id: c8972912af904d98b5610c325e3d5ad3
created_time: 2025-11-28T23:09:55.478Z
updated_time: 2025-11-28T23:16:46.072Z
is_conflict: 0
latitude: 0.00000000
longitude: 0.00000000
altitude: 0.0000
author: 
source_url: 
is_todo: 0
todo_due: 0
todo_completed: 0
source: joplin-desktop
source_application: net.cozic.joplin-desktop
application_data: 
order: 1764370775885
user_created_time: 2025-11-28T23:09:55.478Z
user_updated_time: 2025-11-28T23:09:55.504Z
encryption_cipher_text: 
encryption_applied: 0
markup_language: 1
is_shared: 0
share_id: 
conflict_original_id: 
master_key_id: 
user_data: 
deleted_time: 0
type_: 1