加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Branch policies on Azure Repos

发布时间:2020-12-14 02:02:11 所属栏目:Windows 来源:网络整理
导读: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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读