feat that define xiuos develop-branch as prepare_for_master

This commit is contained in:
Liu_Weichao 2021-12-08 16:46:11 +08:00
parent 7f3eda0815
commit 3879d865d3
1 changed files with 15 additions and 11 deletions

View File

@ -9,10 +9,10 @@ XiUOS采用git作为代码仓库开发流程如下图所示:
这里假定您对git已经有了一定的了解。 这里假定您对git已经有了一定的了解。
XiUOS的主代码库地址为 "https://git.trustie.net/xuos/xiuos.git" XiUOS的主代码库地址为 "https://code.gitlink.org.cn/panda/xiuos.git"
XiUOS的项目首页为 XiUOS的项目首页为
[https://forgeplus.trustie.net/projects/xuos/xiuos](https://forgeplus.trustie.net/projects/xuos/xiuos) [https://www.gitlink.org.cn/xuos/xiuos](https://www.gitlink.org.cn/xuos/xiuos)
@ -22,23 +22,27 @@ XiUOS的项目首页为
假定您在Trustie的用户名为 "panda" 假定您在Trustie的用户名为 "panda"
::: warning TIPs
XiUOS开发分支为prepare_for_master社区开发者所有操作均在该分支上进行原则上主分支master不接受合并请求。
:::
### 步骤1 : 复刻 ### 步骤1 : 复刻
在浏览器中打开 XiUOS的项目首页 [https://forgeplus.trustie.net/projects/xuos/xiuos](https://forgeplus.trustie.net/projects/xuos/xiuos), 点击右上角的"复刻" 按钮 在浏览器中打开 XiUOS的项目首页 [https://www.gitlink.org.cn/xuos/xiuos](https://www.gitlink.org.cn/xuos/xiuos), 点击右上角的"复刻" 按钮
这样您就在自己的个人空间中有了XiUOS的一个复刻代码库, 地址为 这样您就在自己的个人空间中有了XiUOS的一个复刻代码库, 地址为
项目首页为 "https://forgeplus.trustie.net/projects/panda/xiuos" 项目首页为 "https://www.gitlink.org.cn/panda/xiuos"
代码库地址为 "https://git.trustie.net/panda/xiuos.git" 代码库地址为 "https://code.gitlink.org.cn/panda/xiuos.git"
### 步骤2 : 下载到本地,并配置 ### 步骤2 : 下载到本地,并配置
* 从个人空间下载 * 从个人空间下载
``` ```
git clone https://git.trustie.net/panda/xiuos.git git clone https://code.gitlink.org.cn/panda/xiuos.git
``` ```
::: warning 警告 ::: warning 警告
@ -49,7 +53,7 @@ git clone https://git.trustie.net/panda/xiuos.git
``` ```
# 设置 upstream # 设置 upstream
git remote add upstream https://git.trustie.net/xuos/xiuos.git git remote add upstream https://code.gitlink.org.cn/xuos/xiuos.git
# 禁止直接向 upstream 推送代码 # 禁止直接向 upstream 推送代码
git remote set-url --push upstream no_push git remote set-url --push upstream no_push
``` ```
@ -69,7 +73,7 @@ git fetch upstream
为本次工作创建一个分支,命名为 `develop` 为本次工作创建一个分支,命名为 `develop`
``` ```
git checkout -b develop upstream/master git checkout -b develop upstream/prepare_for_master
``` ```
### 步骤5 : work, commit & commit ### 步骤5 : work, commit & commit
@ -106,7 +110,7 @@ git fetch upstream
将upstream 上最新的代码合并到你的当前工作分支 将upstream 上最新的代码合并到你的当前工作分支
``` ```
git merge upstream/master git merge upstream/prepare_for_master
``` ```
此时请确保本地您位于工作分支。如果合并过程有冲突,您要负责解决冲突,并提交。 此时请确保本地您位于工作分支。如果合并过程有冲突,您要负责解决冲突,并提交。
@ -121,7 +125,7 @@ git push origin develop
### 步骤10 : 合并请求(pull request) ### 步骤10 : 合并请求(pull request)
到自己个人服务器端仓库的首页 https://forgeplus.trustie.net/projects/panda/xiuos, 点击 **合并请求** , 到自己个人服务器端仓库的首页 https://code.gitlink.org.cn/panda/xiuos.git, 点击 **合并请求** ,
设置源分支: 设置源分支:
@ -131,7 +135,7 @@ git push origin develop
目标仓库选择 upstream 库, 即: "泛在操作系统实验室/xiuos" 目标仓库选择 upstream 库, 即: "泛在操作系统实验室/xiuos"
目标分支选择 `master` 目标分支选择 `prepare_for_master`
提交即可。 提交即可。