Git 分支策略及操作演示 (1) | IDCF FDCC认证学员作品
开发库、受控库和产品库
开发库是开发人员修改代码的地方,开发人员可以随意修改; 受控库是测试版本代码存放的地方,需要开发组长提交测试申请修改; 产品库是测试通过版本存放的地方,需要测试报告来驱动修改。
Examples of configuration management systems include the following: Dynamic (or developer's) systems contain components currently being created or revised. They are in the developer's workspace and are controlled by the developer. Configuration items in a dynamic system are under version control. Master (or controlled) systems contain current baselines and changes to them. Configuration items in a master system are under full configuration management as described int ths process area. Static systems contain archives of various baselines released for use. Static systems are under full configuration management as described in this process area.
$ git checkout dev
Switched to a new branch 'dev'
Branch 'dev' set up to track remote branch 'dev' from 'origin'.
$ git checkout test
Switched to branch 'test'
Your branch is up to date with 'origin/test'.
$ git merge dev --squash --strategy-option=theirs
Auto-merging README.md
Automatic merge went well; stopped before committing as requested
Squash commit -- not updating HEAD
$ git commit -m "test-v2"
[test 8d9b6a4] test-v2
1 file changed, 5 insertions(+)
$ git log --oneline --graph
* 8d9b6a4 (HEAD -> test) test-v2
* 0e9357a test-v1
* d226468 init
$ git push
...
Writing objects: 100% (3/3), 285 bytes | 285.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote:
remote: To create a merge request for test, visit:
remote: https://codehub.devcloud.huaweicloud.com/codehub/nnnnnn/newmerge
...
合并请求及评审
评论