Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
Manage the work in your team's Git repo from the Branches view on the web.
Customize the view to track the branches you care most about so you can stay on top of changes made by your team.
View your repo's branches by selecting Repos, Branches while viewing your repo on the web.
- View code in private projects: At least Basic access. - Clone or contribute to code in private projects: Member of the Contributors security group or corresponding permissions in the project. - Set branch or repository permissions: Manage permissions permissions for the branch or repository. - Change default branch: Edit policies permissions for the repository. - Import a repository: Member of the Project Administrators security group or Git project-level Create repository permission set to Allow. For more information, see Set Git repository permissions.
- View code: At least Basic access. - Clone or contribute to code: Member of the Contributors security group or corresponding permissions in the project.
The default Mine tab on the branches page shows branches you created, pushed changes to, or set as a favorite, along with the default branch for the repo, such as main. The All tab lists all branches in the repo, and the Stale tab lists branches in the repo that don't have any commits for the past three months or longer.
If you don't see the branch you're looking for and you think it might be deleted, see Restore a deleted branch.
Filter the listed branches in any of the branch views by entering a specific name or pattern in the Search all branches box in the upper right.
If your team uses a forward slash separator in your branch names, a collapsible tree view displays for those branches.
Add branches from the All view to the Mine view by selecting the star icon to favorite the branch.
Mark multiple branches as favorites by selecting the star icon on the tree view next to a folder on the tree.
Remove favorites by toggling the star off or by selecting the ... to the right of the star to open the branch context menu, then selecting Remove from my favorites.
Review updates to your branches
Each branch name has the name of the last contributor to the branch and a link to the latest commit on the branch. Select the date or time of the last commit to review the updates to the branch.
The branch view also shows the number of commits the branch is ahead of and behind the branch labeled Compare. Use this information to quickly check how far a branch diverged from another.
If the branch has a pull request open, you can see its pull request ID. Select the pull request to open it, so you can review the details.
Change the compare branch
The "ahead" and "behind" numbers listed for each branch get compared with the branch currently labeled Compare on the Branches page. Update your compare branch to see how far ahead or behind your branches are compared to another branch in your repo:
Select ...More actions for the branch you want to set as the baseline for comparison.
Select Set as compare branch.
The Compare label moves to this branch, and the other branches on the page have the number of commits ahead/behind updated to reflect the new comparison.
View branch history
Review the files in a branch or history by selecting the ... icon next to the branch name and choosing View files or View history. View files opens up the Files view on the web so you can
browse the files based on the most recent commit on the branch. View history shows each commit in the branch history. Select a commit from this history to see the file changes made in that commit.
Change your default branch
You can use a branch other than main for new changes or change your main line of development in your repo. To change the default branch name for new repositories, see All repositories settings and policies.
To change your repo's default branch for merging new pull requests, you need at least two branches. If there's only one branch, it's already the default. You must create a second branch to change the default.
Note
Changing the default branch requires you to have Edit policies permission. For more information, see Set Git repository permissions.
შემოუერთდით Meetup სერიას, რათა შექმნათ მასშტაბური AI გადაწყვეტილებები რეალურ სამყაროში გამოყენების შემთხვევებზე დაყრდნობით თანამემამულე დეველოპერებთან და ექსპერტებთან.
This certification measures your ability to accomplish the following technical tasks: Design and implement processes and communications, design and implement a source control strategy, design and implement build and release pipelines, develop a security and compliance plan, and implement an instrumentation strategy.