如何修改VSTS中创建新Pull Request时的默认分支设置?
Changing Default Pull Request Target Branch in VSTS
Absolutely! You can totally adjust the default target branch for new pull requests in VSTS (now part of Azure DevOps) to your preferred custom branch. Here’s a straightforward step-by-step guide to get this done:
- Navigate to your project in VSTS and go to the Repos section.
- Select the specific repository you want to configure this setting for.
- Click the Settings gear icon in the top-right corner of the Repos page.
- From the left sidebar in the Settings menu, choose Branches.
- Locate your custom branch in the list, click the ellipsis (...) next to its name, and select Set as default branch.
Once you finish these steps, every new pull request created for this repository will automatically have your custom branch pre-selected as the target—replacing the original default of Master. Just note this is a repository-level setting, so all team members working on this repo will see this new default when creating PRs.
内容的提问来源于stack exchange,提问作者Sajeetharan
相关产品推荐
相关产品推荐

