14.00c355b3.js
1.7 KB
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{589:function(t,r,v){"use strict";v.r(r);var e=v(27),_=Object(e.a)({},(function(){var t=this,r=t.$createElement,v=t._self._c||r;return v("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[v("h1",{attrs:{id:"git-使用规范"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#git-使用规范"}},[t._v("#")]),t._v(" Git 使用规范")]),t._v(" "),v("p",[t._v("对于 git 的使用规范,更多的是对于分支的应用")]),t._v(" "),v("h2",{attrs:{id:"git-分支与-ci-cd"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#git-分支与-ci-cd"}},[t._v("#")]),t._v(" Git 分支与 CI/CD")]),t._v(" "),v("p",[t._v("在自动化持续集成的体系建设中,需要对源代码仓库的不同分支与不同工作环境做对应,并将构建的结果自动集成/交付/部署,现整理分支对照环境关系如下表格")]),t._v(" "),v("table",[v("thead",[v("tr",[v("th",[t._v("环境")]),t._v(" "),v("th",[t._v("分支")])])]),t._v(" "),v("tbody",[v("tr",[v("td",[t._v("生产环境(production)")]),t._v(" "),v("td",[t._v("master")])]),t._v(" "),v("tr",[v("td",[t._v("预上线环境(prepare)")]),t._v(" "),v("td",[t._v("prepare")])]),t._v(" "),v("tr",[v("td",[t._v("测试环境(test)")]),t._v(" "),v("td",[t._v("test")])])])]),t._v(" "),v("p",[t._v("日常工作的开发环境,应使用 "),v("code",[t._v("dev")]),t._v(" 作为开发分支")]),t._v(" "),v("h2",{attrs:{id:"分支管理"}},[v("a",{staticClass:"header-anchor",attrs:{href:"#分支管理"}},[t._v("#")]),t._v(" 分支管理")]),t._v(" "),v("p",[t._v("项目进入提测阶段后,")])])}),[],!1,null,null,null);r.default=_.exports}}]);