码迷,mamicode.com
首页 > 其他好文 > 详细

Branch policies on Azure Repos

时间:2019-05-13 14:08:44      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:https   require   ranch   simple   pad   head   extern   size   change   

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:

  • Isolate work in progress from the completed work in your master branch
  • Guarantee changes build before they get to master
  • Limit who can contribute to specific branches
  • Enforce who can create branches and the naming guidelines for the branches
  • Automatically include the right reviewers for every code change
  • Enforce best practices with required code reviewers

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. 

  • Adopt a branching strategy

  • 技术图片

    How to configure branch policies

  • 技术图片

    Branch permissions

  • 技术图片

    Require branch folders

  • 技术图片

    Configure a branch policy for an external service

 

 

Branching how to guides

Learn how to perform common tasks when working with branches.

  • Branches tutorial

  • 技术图片

    How to create a branch

  • 技术图片

    How to delete a branch

  • 技术图片

    Restore a deleted branch

  • 技术图片

    How to lock branches

 

Branch policies on Azure Repos

标签:https   require   ranch   simple   pad   head   extern   size   change   

原文地址:https://www.cnblogs.com/chucklu/p/10856159.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!