[Git] A better git process

In project, we can have three branches such as

  • dev
  • stage
  • master

Every developer can merge their code into 'dev' branch.

'stage' & 'master' will be locked, can only be modfied by trusted developer and only through PR.

'stage' will the the same as 'master' branch.

Only when we have tested 'stage' branch, everything works fine, then we can merge to 'master' branch.

Benefits of using a more advanced Git process:

1. Better security through code review

2. Less confusion among developers on a team

3. Clear points to perform verification test

4. Better security through limit access.

原文地址:https://www.cnblogs.com/Answer1215/p/14561284.html