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.

[Git] A better git process

 

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.

相关文章: