Preface: After comparing the internal code management mode of Byte and Ali, it is concluded that the Git development mode of Internet is much the same but little different. Therefore summary, only for personal reference.

The master branch

  1. Primary branch, the branch for which direct commit is prohibited. To make a change, the MR should be mentioned and merged after the CR.
  2. The master branch is supposed to be stable.

Dev branch (version iteration branch)

  1. Pull from the master branch
Git checkout -b dev branch name origin/masterCopy the code
  1. A single developer release requirement can be committed push directly on the dev branch
  2. The feature branch is usually created under the Develop branch when developing a new feature

Development (feat) branch

  1. Execute on the dev branchGit checkout -b iteration branch name. Development branches are usually named asfeat:xxx or feat/xxx
  2. Commit push rebase at will on the development branch
  3. After the feat branch is developed, join the feat branch into the dev branch