公共仓库 – Eternal Night https://www.shuijingwanwq.com There is no problem not worth solving, and no technology not worth learning! Fri, 05 Jun 2026 13:27:03 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 Distributed workflow on GitHub, GitLab, local Git repository https://www.shuijingwanwq.com/en/2018/04/17/15858/ https://www.shuijingwanwq.com/en/2018/04/17/15858/#respond Tue, 17 Apr 2018 07:37:23 +0000 https://www.shuijingwanwq.com/?p=15858 浏览量: 0

1. shuijingwan/yii2-app-advanced (github), as shown in Figure 1
(1) Project maintainer: wangqiang
(2) Public warehouse:https://github.com/shuijingwan/yii2-app-advanced.git
(3) Visible grade of public warehouse: public
(4) The maintainer clones from the public warehouse, and performs pull and push in his own local repository (github-shuijingwan-yii2-app-advanced).
(5) Branch: long-term branch: master; short-term branch: function (feature) branch, pre-release (release) branch, patch bug (fixbug) branch
(6) shuijingwan/yii2-app-advanced(github) and yiisoft/yii2-app-advanced(github) keep synchronized based on composer
The specific process can be referred to:

Based on yiisoft/yii2-app-advanced, create a new repository yii2-app-advanced on github, and create a new interface application (implement RESTful-style web service services. API), support for creating new API directories, configuration and environment, testing, vagrant, etc.

Based on yiisoft/yii2-app-advanced, create a new repository yii2-app-advanced on github, and create a new interface application (implement RESTful-style web service services. API), implement model hierarchy: data layer, logic layer, clarify common directory, application, module inheritance, reference relationship

Based on yiisoft/yii2-app-advanced, create a new repository yii2-app-advanced on github, and create a new interface application (implement RESTful-style web service services. API), implement RESTful web service, support internationalization (drivingly set the target language, default to simplified Chinese)

Based on yiisoft/yii2-app-advanced, create a new repository yii2-app-advanced on github, and create a new interface application (implement RESTful-style web service services. API), prepare some examples of automated tests (API tests) for user-related operations in the tests directory of the API to ensure that the application will not affect existing functions when changing or adding new functions

shuijingwan/yii2-app-advanced(Github) 与 yiisoft/yii2-app-advanced(Github) 基于 Composer 保持同步更新

Figure 1

2. Create a new project php/yii2-app-advanced on gitlab, as shown in Figure 2
Note:
(1) Project maintainer: wangqiang
(2) Public warehouse:https://gitlab.chinamcloud.com/php/yii2-app-advanced.git
(3) Visible level of public warehouse: internal

在 Gitlab 上新建项目 php/yii2-app-advanced

Figure 2

3. Clone from the public warehouse to the local warehouse (gitlab-php-yii2-app-advanced), as shown in Figure 3

从公共仓库克隆至本地仓库(gitlab-php-yii2-app-advanced)

Figure 3

4. Add the main contributor warehouse as a remote warehouse, as shown in Figure 4 (add/save the remote end), Figure 5 (not disabled to get the tag), Figure 6 (get remote branch), Figure 7 (determine), Figure 8 (off), and Figure 9 (determine)
Note:
(1) The main contributor warehouse:https://github.com/shuijingwan/yii2-app-advanced.git
(2) The visible level of the main contributor warehouse: public (can only be pulled, but cannot be pushed)
(3) The maintainer is cloned from the public warehouse, in his own local repository, add the main contributor warehouse as a remote warehouse, and execute the pull
Remote: github-shuijingwan-yii2-app-advanced
url:https://github.com/shuijingwan/yii2-app-advanced.git
(4) php/yii2-app-advanced(gitlab) keeps synchronized with shuijingwan/yii2-app-advanced(github)

添加/保存远端

Figure 4

不禁用获取标签

Figure 5

图6

Get remote branch

确定

Figure 7

关闭

8

确定

Figure 9

5. The main contributor warehouse (https://github.com/shuijingwan/yii2-app-advanced.git)拉取至本地仓库,如图10

将主贡献者仓库(https://github.com/shuijingwan/yii2-app-advanced.git)拉取至本地仓库

Figure 10

6. Push the pulled local warehouse to the public warehouse (https://gitlab.chinamcloud.com/php/yii2-app-advanced.git),如图11
Note:
(1) The maintainer pushes the pulled local warehouse to the public warehouse
(2) Branch: long-term branch: master; short-term branch: function (feature) branch, pre-release (release) branch, patch bug (fixbug) branch

将拉取后的本地仓库推送到公共仓库(https://gitlab.chinamcloud.com/php/yii2-app-advanced.git)

Figure 11

7. The main contributor repository of all projects on GitLab in the later period: php/yii2-app-advanced, create a new project on gitlab php/yii2-app-advanced-cmc, as shown in Figure 12
Note:
(1) Project maintainer: wangqiang
(2) Public warehouse:https://gitlab.chinamcloud.com/php/yii2-app-advanced-cmc.git
(3) Visible level of public warehouse: internal

后期 Gitlab 上的所有项目的主贡献者仓库:php/yii2-app-advanced,在 Gitlab 上新建项目 php/yii2-app-advanced-cmc

Figure 12

8. From the public warehouse (https://gitlab.chinamcloud.com/php/yii2-app-advanced-cmc.git)克隆至本地仓库(gitlab-php-yii2-app-advanced-cmc),如图13

从公共仓库(https://gitlab.chinamcloud.com/php/yii2-app-advanced-cmc.git)克隆至本地仓库(gitlab-php-yii2-app-advanced-cmc)

Figure 13

9. Add the main contributor warehouse as a remote warehouse, as shown in Figure 14 (Add/Save Remote), Figure 15 (not disabled to get tags), Figure 16 (Get remote branch), Figure 17 (OK)
Note:
(1) The main contributor warehouse:https://gitlab.chinamcloud.com/php/yii2-app-advanced.git
(2) The visible level of the main contributor warehouse: public (can only be pulled, but cannot be pushed)
(3) The maintainer is cloned from the public warehouse, in his own local repository, add the main contributor warehouse as a remote warehouse, and execute the pull
Remote: gitlab-php-yii2-app-advanced
url:https://gitlab.chinamcloud.com/php/yii2-app-advanced.git
(4) php/yii2-app-advanced-cmc(gitlab) keeps synchronized with php/yii2-app-advanced (gitlab)

添加/保存远端

Figure 14

不禁用获取标签

Figure 15

获取远端分支

Figure 16

确定

Figure 17

10. The main contributor warehouse (https://gitlab.chinamcloud.com/php/yii2-app-advanced.git)拉取至本地仓库(gitlab-php-yii2-app-advanced-cmc),如图18

将主贡献者仓库(https://gitlab.chinamcloud.com/php/yii2-app-advanced.git)拉取至本地仓库(gitlab-php-yii2-app-advanced-cmc)

18

11. Push the pulled local repository (gitlab-php-yii2-app-advanced-cmc) to the public warehouse (https://gitlab.chinamcloud.com/php/yii2-app-advanced-cmc.git),如图19
Note:
(1) The maintainer pushes the pulled local warehouse to the public warehouse
(2) Other contributors clone from the public warehouse, pull and push in their own local warehouse
(2) Branches: long-term branches: master, develop; short-term branches: function (feature) branch, pre-release (release) branch, patch bug (fixbug) branch

将拉取后的本地仓库(gitlab-php-yii2-app-advanced-cmc)推送到公共仓库(https://gitlab.chinamcloud.com/php/yii2-app-advanced-cmc.git)

Figure 19

12, php/yii2-app-advanced-cmc (gitlab), create a new branch develop, as shown in Figure 20

php/yii2-app-advanced-cmc(Gitlab),新建分支 develop

Figure 20

13. After the local warehouse is pulled, switch to the develop branch and merge, as shown in Figure 21 and Figure 22

本地仓库拉取后,切换至 develop 分支

Figure 21

合并

Figure 22

 

]]>
https://www.shuijingwanwq.com/en/2018/04/17/15858/feed/ 0