Peoria : azure devops package management - Кабринский Эдуар

Forum Admina typu „Forum”

Peoria : azure devops package management - Кабринский Эдуар

Postautor: SHALOMlex » 13 maja 2021, 1:34

Кабринский Эдуард - Branching strategy in devops - Eduard Kabrinskiy


<h1>Branching strategy in devops</h1>
<p>[youtube]</p>
Branching strategy in devops <a href="http://remmont.com">Latest news</a> Branching strategy in devops
<h1>Branching Strategy DevOps | Git Branching Model | Git Branch Policy | Restoring A Deleted Branch</h1>
<p>This blog will cover a basic overview of how Git can be used to implement a Branching Strategy in an Azure Environment.</p>
<p>This blog talks about technologies that are part of the Azure DevOps environment. If it’s something in which you have an interest or you want to learn it then you can visit our previous blog to know more about the <strong> [AZ-400] Microsoft Azure DevOps certification.</strong></p>
<h2><strong>Git Branches</strong> </h2>
<p>Git branches aren’t much more than a small reference that keeps an exact history of commits, so they are cheap to create.</p>
<p>Committing changes to a branch will not affect other branches, and you can share branches with others without having to merge the changes into the main project.</p>
<p>Create new branches to isolate changes for a feature or a bug fix from your master branch and other work.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/2483/1*J4z5zYaR0nPzFEsbNNTGKA.png" /></p>
<p style="clear: both"><img src="https://miro.medium.com/max/2510/1*0uFNGp-Ve8d4O2KsFC_rGg.png" /></p>
<h2><strong>Git Create New Branch</strong> </h2>
<p style="clear: both"><img src="https://miro.medium.com/max/2513/1*orCN3TpIYtuD4aTr2ZPMxQ.png" /></p>
<p style="clear: both"><img src="https://miro.medium.com/max/2523/1*RsM2jZx3g8UjZgV-txRmXA.png" /></p>
<p style="clear: both"><img src="https://miro.medium.com/max/2525/1*RnR1Lbc7U28PRKyUzwvJJw.png" /></p>
<h2><strong>Git Branch Policies</strong> </h2>
<p>Branch policies are an important part of the Git workflow and enable you to:</p>
<p><ul>
<li>Isolate work in progress from the completed work in your master branch</li>
<li>Guarantee changes build before they get to master</li>
<li>Limit who can contribute to specific branches</li>
<li>Enforce who can create branches and the naming guidelines for the branches</li>
<li>Automatically include the right reviewers for every code change</li>
<li>Enforce best practices with required code reviewers</li>
</ul>
</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1843/1*9N7iG1-IdNAnT6vybDXyyg.png" /></p>
<h2><strong>Code Reviews</strong> </h2>
<p>Code reviews are the best practice for most software development projects. To require teams to review their changes before completing a pull request, select Require a minimum number of reviewers.</p>
<p>The basic policy requires that a certain number of reviewers approve the code with no rejections.</p>
<p>If Requestors can approve their own changes isn’t selected, the creator of the pull request can still vote Approve on their pull request, but their vote won’t count toward the minimum number of reviewers.</p>
<p>If any reviewer rejects the changes, the pull request can’t finish unless you select Allow completion even if some reviewers vote to wait or reject.</p>
<p>You can reset code reviewer votes when new changes are pushed to the source branch. Select Reset code reviewer votes when there are new changes.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1673/1*-6mt9iTd8WoGEdAfT5Z1IQ.png" /></p>
<p>Require associations between pull requests and a work item to ensure that changes to your branch have work item management tracking. Linking work items provide additional context for your changes and ensure that updates go through your work item tracking process.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1670/1*Ko9aWUyhLqximmH5gWE20Q.png" /></p>
<p>Configure a comment resolution policy for your branch by selecting Check for comment resolution.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1640/1*m0dzO6fQ4gBO7b0LBhjmdw.png" /></p>
<p>Maintain a consistent branch history by enforcing a merge strategy when a pull request finishes. Select Enforce a merge strategy and pick an option to require that pull requests merge using that strategy.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1650/1*hw_ynDQFY57Uiiq3DHVlQg.png" /></p>
<p>Set a policy requiring changes in a pull request to build successfully with the protected branch before the pull request can be completed.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1400/1*OkZEIYMA243andPFwFYAeg.png" /></p>
<h2><strong>Build Policies</strong> </h2>
<p>Build policies reduce breaks and keep your test results passing.</p>
<p>Build policies help even if you’re using continuous integration (CI) on your development branches to catch problems early.</p>
<p>External services can use the PR Status API to post detailed status to your PRs.</p>
<p>The branch policy for additional services brings the ability for those third-party services to participate in the PR workflow and establish policy requirements.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1343/1*jtOlo5NvzBuU1pVAavHSQw.png" /></p>
<p>Select reviewers for specific directories and files in your repo.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1508/1*8wQTUVm8BJ_mYzcKti6QcQ.png" /></p>
<p>These reviewers are automatically added to pull requests that change files along those paths. You can also specify an Activity feed message.</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1103/1*H0RhsR7OOAgtekw6DA_DlA.png" /></p>
<h2><strong>Bypass Branch Policies</strong> </h2>
<p>There are several permissions that allow users to bypass branch policy.</p>
<p>In Azure DevOps Services, the Exempt from policy enforcement permission does not exist. Instead, there are two new permissions:</p>
<p><ul>
<li>Bypass policies when completing pull requests</li>
<li>Bypass policies when pushing</li>
</ul>
</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1508/1*PDACsoJH7hENBQrRuiWCfw.png" /></p>
<p>Users that previously had Exempt from policy enforcement enabled now have the two new permissions enabled instead.</p>
<p>In some cases, you need to bypass policy requirements. Bypassing lets you push changes to the branch directly or complete a pull request even if branch policies aren’t satisfied.</p>
<h2><strong>Branch Securities</strong> </h2>
<ul>
<li>Set up permissions to control who can read and update the code in a branch on your GlTrepo.</li>
<li>You can set permissions for individual users and groups and inherit and override permissions as needed from your repo permissions.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/890/1*6EOhLjnVh1clk4J4YXjqZQ.png" /></p>
<ul>
<li>Remove permissions for a user or group by selecting the user or Azure DevOps group, then selecting Remove.</li>
<li>The user or group will still exist in your Project and this change will not affect other permissions for the user or group.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1513/1*_f0G1gLKvnJJGeHCe_O4OQ.png" /></p>
<h2><strong>Branch Lock</strong> </h2>
<ul>
<li>Prevent updates to a Git branch by locking the branch. Locking a branch prevents other users from changing the existing commit history.</li>
<li>Locking also blocks any new commits from being added to the branch by others.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1508/1*CdBvKL3yYrjmOdLUWmloAQ.png" /></p>
<ul>
<li>Locking is ideal for preventing new changes that might conflict with an important merge or to place a branch into a read-only state.</li>
<li>Locking does not prevent the cloning of a repo or fetching updates made in the branch into your local repo.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1080/1*GSXYZnrAbYjrLkjbe_lhJw.png" /></p>
<h2><strong>Restore A Deleted Git Branch</strong> </h2>
<ul>
<li>We can restore a deleted Git branch via the web in Azure Repos or TFS 2019.</li>
<li>If you need to restore a Git branch in your own repo from Visual Studio or the command line, push your branch from your local repo to Azure Repos to restore it.</li>
<li>Open your repo on the web and select the Branches view.</li>
<li>Search for the exact branch name using the Search all branches box in the upper right.</li>
<li>Click the link to search for an exact match in deleted branches. If there is a deleted branch that matches your search, you will be able to see which commit it pointed to when it was deleted, who deleted it, and when it was deleted.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1513/1*kj_KQWX9UKEjzPovjxDK1Q.png" /></p>
<ul>
<li>To restore the branch, select the … icon next to the branch name and then select the Restore branch from the menu. The branch will be recreated at the last commit to which it pointed. Note that branch policies and permissions will not be restored.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1455/1*rYhLs8afM5-MZgXj3VmHIA.png" /></p>
<h2><strong>Compare Branches</strong> </h2>
<ul>
<li>The ahead and behind numbers listed for each branch are in comparison with the branch currently labeled Compare on the Branches page. Update your compare branch to see how far ahead or behind your branches shown on the page are to another branch in your repo:</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/965/1*PugiSzQmJIief04EFStggQ.png" /></p>
<ul>
<li>Select the … next to the branch you want to set as the baseline for comparison.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1500/1*MmVJt06TEj2NPaKIS3VssA.png" /></p>
<ul>
<li>Select Set as compare branch.</li>
<li>The Compare label will move to this branch and the other branches on the page will have the number of commits ahead/behind updated to reflect the new comparison.</li>
</ul>
<p style="clear: both"><img src="https://miro.medium.com/max/1518/1*MGYxqlTOwzhu2a93_JZN0g.png" /></p>
<h2><strong>Git Branching Model | A Successful Git Branching Model</strong></h2>
<p>This model was conceived in 2010, now more than 10 years ago, and not very long after Git itself came into being. In those 10 years, git-flow (the branching model laid out in this article) has become hugely popular in many a software team to the point where people have started treating it like a standard of sorts</p>
<p style="clear: both"><img src="https://miro.medium.com/max/1438/0*Qk_pnqXXQtl_W5_4.png" /></p>
<h2><strong>Git Main Branches</strong> </h2>
<p>The central repo holds two main branches with an infinite lifetime:</p>
<p>The master branch at origin should be familiar to every Git user. Parallel to the master branch, another branch exists called develop .</p>
<p style="clear: both"><img src="https://miro.medium.com/max/703/1*b9Zm8db4jUPmuquFJbAhYQ.png" /></p>
<h2><strong>Git Supporting Branches</strong> </h2>
<p>After, the main branches master and develop , our development model uses a variety of supporting branches for parallel development between team members, and tracking of features, product releases and to assist in quickly fixing live production problems. Unlike the main branches, these branches always have a limited lifetime( short-lived</em>), since they will be removed after the work is completed.</p>
<p>The different types of branches we may use are:</p>
<p><ul>
<li>Feature branches</em></li>
<li>Release branches</em></li>
<li>Hotfix branches</em></li>
</ul>
</p>
<h2>Branching strategy in devops</h2>

<h3>Branching strategy in devops</h3>
<p>[youtube]</p>
Branching strategy in devops <a href="http://remmont.com">Today news live</a> Branching strategy in devops
<h4>Branching strategy in devops</h4>
The blog covers branching strategies in DevOps, how to create a new branch, a successful git branching model, policies, security and more.
<h5>Branching strategy in devops</h5>
Branching strategy in devops <a href="http://remmont.com">Branching strategy in devops</a> Branching strategy in devops
SOURCE: <h6>Branching strategy in devops</h6> <a href="https://dev-ops.engineer/">Branching strategy in devops</a> Branching strategy in devops
#tags#[replace: -,-Branching strategy in devops] Branching strategy in devops#tags#

Kabrinskiy Eduard
top news
Myanmar News <a href="http://remmont.com/urgent-care-dallas-national-urgent-care-center-accreditation/">1840 estero blvd fort myers</a> miles news updates
Awatar użytkownika
SHALOMlex
 
Posty: 675
Rejestracja: 15 lip 2019, 0:30
Lokalizacja: USA http://remmont.com/14799/

Wróć do Forum Admina

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 1 gość

cron