其他分享
首页 > 其他分享> > Branch policies on Azure Repos

Branch policies on Azure Repos

作者:互联网

https://docs.microsoft.com/en-us/azure/devops/repos/git/branch-policies-overview?view=azure-devops

Branch policies are an important part of the Git workflow and enable you to:

Adopt a Git branching strategy

There are a few critical branches in your repo that the team relies on always being in good shape, such as your master branch. Require pull requests to make any changes on these branches. Developers pushing changes directly to the protected branches will have their pushes rejected.

Keep your branch strategy simple by building your strategy from these three concepts:

  1. Use feature branches for all new features and bug fixes.
  2. Merge feature branches into the master branch using pull requests.
  3. Keep a high quality, up-to-date master branch.

A strategy that extends these concepts and avoids contradictions will result in a version control workflow for your team that is consistent and easy to follow. 

 

 

Branching how to guides

Learn how to perform common tasks when working with branches.

 

标签:branches,policies,Repos,strategy,master,branch,Azure,your
来源: https://www.cnblogs.com/chucklu/p/10856159.html