Update 跨平台代码同步.md

This commit is contained in:
maxjhandsome 2024-05-16 11:00:37 +08:00
parent 26e2eca811
commit 8c883a9ff7
1 changed files with 0 additions and 8 deletions

View File

@ -16,15 +16,7 @@ sidebar_position: 2
### 配置双向同步
1、进入需要创建同步的代码库“服务”tab开通跨平台代码同步服务。
![3.开启跨平台服务](../../static/img/reposyncer/3.开启跨平台服务.png)
2、配置跨平台的同步仓库支持github和gitee。需输入代码库地址git地址和网站访问地址均支持以及配置对应token用于授权同步此处须注意token的权限以及是否过期。</br>
Github配置方式为个人头像→Settings→Developer Settings→Personal access tokens (classic)→Generate new token→勾选repo按钮→保存</br>
Gitee配置方式为个人头像→设置→私人令牌→生成新令牌→勾选projects权限→提交
![4.配置同步仓库](../../static/img/reposyncer/4.配置同步仓库.jpg)
3、在首次创建同步仓库时需要用户手动在目标仓库的代码库创建一条webhook用于监听仓库push事件从而向其他同步仓库推送代码完成同步同步步骤如下